Skip to content

Commit

Permalink
upgrade lmdb-store, with jest compat, remove text-encoding shim
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Oct 1, 2020
1 parent 103700a commit f27a819
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 20 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,6 @@
"supertest": "^3.1.0",
"supertest-as-promised": "^4.0.2",
"tape": "^4.13.0",
"text-encoding": "^0.7.0",
"topojson-client": "3.0.0",
"tree-kill": "^1.2.2",
"typescript": "4.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-optimizer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"jest-diff": "^25.5.0",
"js-yaml": "^3.14.0",
"json-stable-stringify": "^1.0.1",
"lmdb-store": "^0.6.9",
"lmdb-store": "^0.6.10",
"loader-utils": "^1.2.3",
"node-sass": "^4.13.1",
"normalize-path": "^3.0.0",
Expand Down
1 change: 0 additions & 1 deletion src/dev/jest/setup/polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ const MutationObserver = require('mutation-observer');
Object.defineProperty(window, 'MutationObserver', { value: MutationObserver });

require('whatwg-fetch');
Object.assign(global, require('text-encoding'));
2 changes: 0 additions & 2 deletions x-pack/dev-tools/jest/setup/polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ if (!global.URL.hasOwnProperty('createObjectURL')) {
Object.defineProperty(global.URL, 'createObjectURL', { value: () => '' });
}

Object.assign(global, require('text-encoding'));

// Will be replaced with a better solution in EUI
// https://github.com/elastic/eui/issues/3713
global._isJest = true;
1 change: 0 additions & 1 deletion x-pack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@
"supertest": "^3.1.0",
"supertest-as-promised": "^4.0.2",
"suricata-sid-db": "^1.0.2",
"text-encoding": "^0.7.0",
"tinycolor2": "1.4.1",
"topojson-client": "3.0.0",
"tree-kill": "^1.2.2",
Expand Down
29 changes: 15 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19549,15 +19549,16 @@ livereload-js@^2.3.0:
resolved "https://registry.yarnpkg.com/livereload-js/-/livereload-js-2.4.0.tgz#447c31cf1ea9ab52fc20db615c5ddf678f78009c"
integrity sha512-XPQH8Z2GDP/Hwz2PCDrh2mth4yFejwA1OZ/81Ti3LgKyhDcEjsSsqFWZojHG0va/duGd+WyosY7eXLDoOyqcPw==

lmdb-store@^0.6.9:
version "0.6.9"
resolved "https://registry.yarnpkg.com/lmdb-store/-/lmdb-store-0.6.9.tgz#2e4f02672b5cd5b687f281c01a7f493470b4ac4f"
integrity sha512-gNcTtJNBtNQctZi7wcNOnO0bLOlhBY+cHLaX/9cgAeFrtwp3umhGFewMeaiPEpdWRDWC6PslZqKCma9RepCWyw==
lmdb-store@^0.6.10:
version "0.6.10"
resolved "https://registry.yarnpkg.com/lmdb-store/-/lmdb-store-0.6.10.tgz#db8efde6e052aabd17ebc63c8a913e1f31694129"
integrity sha512-ZLvp3qbBQ5VlBmaWa4EUAPyYEZ8qdUHsW69HmxkDi84pFQ37WMxYhFaF/7PQkdtxS/vyiKkZigd9TFgHjek1Nw==
dependencies:
fs-extra "^9.0.1"
msgpackr "^0.4.1"
msgpackr "^0.5.0"
nan "^2.14.1"
node-gyp-build "^4.2.3"
weak-lru-cache "^0.2.0"

load-bmfont@^1.3.1, load-bmfont@^1.4.0:
version "1.4.0"
Expand Down Expand Up @@ -21250,10 +21251,10 @@ msgpackr-extract@^0.3.4:
nan "^2.14.1"
node-gyp-build "^4.2.3"

msgpackr@^0.4.1:
version "0.4.2"
resolved "https://registry.yarnpkg.com/msgpackr/-/msgpackr-0.4.2.tgz#86345273fa4dd4774f6590eb7935439a85974449"
integrity sha512-O2ysETY4CHEzFOih14y2i9FtJNV8MmqGKgo2ZIGqk/IH1pFPmg6hxQ9fbE4WWbhnslUgdwjJhpXJ3tVWQzcTIw==
msgpackr@^0.5.0:
version "0.5.1"
resolved "https://registry.yarnpkg.com/msgpackr/-/msgpackr-0.5.1.tgz#7eecbf342645b7718dd2e3386894368d06732b3f"
integrity sha512-nK2uJl67Q5KU3MWkYBUlYynqKS1UUzJ5M1h6TQejuJtJzD3hW2Suv2T1pf01E9lUEr93xaLokf/xC+jwBShMPQ==
optionalDependencies:
msgpackr-extract "^0.3.4"

Expand Down Expand Up @@ -28700,11 +28701,6 @@ text-diff@^1.0.1:
resolved "https://registry.yarnpkg.com/text-diff/-/text-diff-1.0.1.tgz#6c105905435e337857375c9d2f6ca63e453ff565"
integrity sha1-bBBZBUNeM3hXN1ydL2ymPkU/9WU=

text-encoding@^0.7.0:
version "0.7.0"
resolved "https://registry.yarnpkg.com/text-encoding/-/text-encoding-0.7.0.tgz#f895e836e45990624086601798ea98e8f36ee643"
integrity sha512-oJQ3f1hrOnbRLOcwKz0Liq2IcrvDeZRHXhd9RgLrsT+DjWY/nty1Hi7v3dtkaEYbPYe0mUoOfzRrMwfXXwgPUA==

[email protected]:
version "1.0.0"
resolved "https://registry.yarnpkg.com/text-hex/-/text-hex-1.0.0.tgz#69dc9c1b17446ee79a92bf5b884bb4b9127506f5"
Expand Down Expand Up @@ -31005,6 +31001,11 @@ wcwidth@^1.0.1:
dependencies:
defaults "^1.0.3"

weak-lru-cache@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/weak-lru-cache/-/weak-lru-cache-0.2.0.tgz#447379ccff6dfda1b7a9566c9ef168260be859d1"
integrity sha512-M1l5CzKvM7maa7tCbtL0NW6sOnp8gqup853+9Aq7GL0XNWKNnFOkeE3v3Z5X2IeMzedPwQyPbi4RlFvD6rxs7A==

web-namespaces@^1.0.0:
version "1.1.4"
resolved "https://registry.yarnpkg.com/web-namespaces/-/web-namespaces-1.1.4.tgz#bc98a3de60dadd7faefc403d1076d529f5e030ec"
Expand Down

0 comments on commit f27a819

Please sign in to comment.