diff --git a/package-lock.json b/package-lock.json index bc812070..de860ee6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10236,12 +10236,14 @@ "node_modules/fsevents/node_modules/abbrev": { "version": "1.1.1", "inBundle": true, - "license": "ISC" + "license": "ISC", + "optional": true }, "node_modules/fsevents/node_modules/ansi-regex": { "version": "2.1.1", "inBundle": true, "license": "MIT", + "optional": true, "engines": { "node": ">=0.10.0" } @@ -10249,12 +10251,14 @@ "node_modules/fsevents/node_modules/aproba": { "version": "1.2.0", "inBundle": true, - "license": "ISC" + "license": "ISC", + "optional": true }, "node_modules/fsevents/node_modules/are-we-there-yet": { "version": "1.1.5", "inBundle": true, "license": "ISC", + "optional": true, "dependencies": { "delegates": "^1.0.0", "readable-stream": "^2.0.6" @@ -10263,12 +10267,14 @@ "node_modules/fsevents/node_modules/balanced-match": { "version": "1.0.0", "inBundle": true, - "license": "MIT" + "license": "MIT", + "optional": true }, "node_modules/fsevents/node_modules/brace-expansion": { "version": "1.1.11", "inBundle": true, "license": "MIT", + "optional": true, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -10277,12 +10283,14 @@ "node_modules/fsevents/node_modules/chownr": { "version": "1.1.4", "inBundle": true, - "license": "ISC" + "license": "ISC", + "optional": true }, "node_modules/fsevents/node_modules/code-point-at": { "version": "1.1.0", "inBundle": true, "license": "MIT", + "optional": true, "engines": { "node": ">=0.10.0" } @@ -10290,22 +10298,26 @@ "node_modules/fsevents/node_modules/concat-map": { "version": "0.0.1", "inBundle": true, - "license": "MIT" + "license": "MIT", + "optional": true }, "node_modules/fsevents/node_modules/console-control-strings": { "version": "1.1.0", "inBundle": true, - "license": "ISC" + "license": "ISC", + "optional": true }, "node_modules/fsevents/node_modules/core-util-is": { "version": "1.0.2", "inBundle": true, - "license": "MIT" + "license": "MIT", + "optional": true }, "node_modules/fsevents/node_modules/debug": { "version": "3.2.6", "inBundle": true, "license": "MIT", + "optional": true, "dependencies": { "ms": "^2.1.1" } @@ -10314,6 +10326,7 @@ "version": "0.6.0", "inBundle": true, "license": "MIT", + "optional": true, "engines": { "node": ">=4.0.0" } @@ -10321,12 +10334,14 @@ "node_modules/fsevents/node_modules/delegates": { "version": "1.0.0", "inBundle": true, - "license": "MIT" + "license": "MIT", + "optional": true }, "node_modules/fsevents/node_modules/detect-libc": { "version": "1.0.3", "inBundle": true, "license": "Apache-2.0", + "optional": true, "bin": { "detect-libc": "bin/detect-libc.js" }, @@ -10338,6 +10353,7 @@ "version": "1.2.7", "inBundle": true, "license": "ISC", + "optional": true, "dependencies": { "minipass": "^2.6.0" } @@ -10345,12 +10361,14 @@ "node_modules/fsevents/node_modules/fs.realpath": { "version": "1.0.0", "inBundle": true, - "license": "ISC" + "license": "ISC", + "optional": true }, "node_modules/fsevents/node_modules/gauge": { "version": "2.7.4", "inBundle": true, "license": "ISC", + "optional": true, "dependencies": { "aproba": "^1.0.3", "console-control-strings": "^1.0.0", @@ -10366,6 +10384,7 @@ "version": "7.1.6", "inBundle": true, "license": "ISC", + "optional": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -10384,12 +10403,14 @@ "node_modules/fsevents/node_modules/has-unicode": { "version": "2.0.1", "inBundle": true, - "license": "ISC" + "license": "ISC", + "optional": true }, "node_modules/fsevents/node_modules/iconv-lite": { "version": "0.4.24", "inBundle": true, "license": "MIT", + "optional": true, "dependencies": { "safer-buffer": ">= 2.1.2 < 3" }, @@ -10401,6 +10422,7 @@ "version": "3.0.3", "inBundle": true, "license": "ISC", + "optional": true, "dependencies": { "minimatch": "^3.0.4" } @@ -10409,6 +10431,7 @@ "version": "1.0.6", "inBundle": true, "license": "ISC", + "optional": true, "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -10417,12 +10440,14 @@ "node_modules/fsevents/node_modules/inherits": { "version": "2.0.4", "inBundle": true, - "license": "ISC" + "license": "ISC", + "optional": true }, "node_modules/fsevents/node_modules/ini": { "version": "1.3.5", "inBundle": true, "license": "ISC", + "optional": true, "engines": { "node": "*" } @@ -10431,6 +10456,7 @@ "version": "1.0.0", "inBundle": true, "license": "MIT", + "optional": true, "dependencies": { "number-is-nan": "^1.0.0" }, @@ -10441,12 +10467,14 @@ "node_modules/fsevents/node_modules/isarray": { "version": "1.0.0", "inBundle": true, - "license": "MIT" + "license": "MIT", + "optional": true }, "node_modules/fsevents/node_modules/minimatch": { "version": "3.0.4", "inBundle": true, "license": "ISC", + "optional": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -10457,12 +10485,14 @@ "node_modules/fsevents/node_modules/minimist": { "version": "1.2.5", "inBundle": true, - "license": "MIT" + "license": "MIT", + "optional": true }, "node_modules/fsevents/node_modules/minipass": { "version": "2.9.0", "inBundle": true, "license": "ISC", + "optional": true, "dependencies": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -10472,6 +10502,7 @@ "version": "1.3.3", "inBundle": true, "license": "MIT", + "optional": true, "dependencies": { "minipass": "^2.9.0" } @@ -10481,6 +10512,7 @@ "deprecated": "Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)", "inBundle": true, "license": "MIT", + "optional": true, "dependencies": { "minimist": "^1.2.5" }, @@ -10491,12 +10523,14 @@ "node_modules/fsevents/node_modules/ms": { "version": "2.1.2", "inBundle": true, - "license": "MIT" + "license": "MIT", + "optional": true }, "node_modules/fsevents/node_modules/needle": { "version": "2.3.3", "inBundle": true, "license": "MIT", + "optional": true, "dependencies": { "debug": "^3.2.6", "iconv-lite": "^0.4.4", @@ -10513,6 +10547,7 @@ "version": "0.14.0", "inBundle": true, "license": "BSD-3-Clause", + "optional": true, "dependencies": { "detect-libc": "^1.0.2", "mkdirp": "^0.5.1", @@ -10533,6 +10568,7 @@ "version": "4.0.3", "inBundle": true, "license": "ISC", + "optional": true, "dependencies": { "abbrev": "1", "osenv": "^0.1.4" @@ -10545,6 +10581,7 @@ "version": "1.1.1", "inBundle": true, "license": "ISC", + "optional": true, "dependencies": { "npm-normalize-package-bin": "^1.0.1" } @@ -10552,12 +10589,14 @@ "node_modules/fsevents/node_modules/npm-normalize-package-bin": { "version": "1.0.1", "inBundle": true, - "license": "ISC" + "license": "ISC", + "optional": true }, "node_modules/fsevents/node_modules/npm-packlist": { "version": "1.4.8", "inBundle": true, "license": "ISC", + "optional": true, "dependencies": { "ignore-walk": "^3.0.1", "npm-bundled": "^1.0.1", @@ -10568,6 +10607,7 @@ "version": "4.1.2", "inBundle": true, "license": "ISC", + "optional": true, "dependencies": { "are-we-there-yet": "~1.1.2", "console-control-strings": "~1.1.0", @@ -10579,6 +10619,7 @@ "version": "1.0.1", "inBundle": true, "license": "MIT", + "optional": true, "engines": { "node": ">=0.10.0" } @@ -10587,6 +10628,7 @@ "version": "4.1.1", "inBundle": true, "license": "MIT", + "optional": true, "engines": { "node": ">=0.10.0" } @@ -10595,6 +10637,7 @@ "version": "1.4.0", "inBundle": true, "license": "ISC", + "optional": true, "dependencies": { "wrappy": "1" } @@ -10603,6 +10646,7 @@ "version": "1.0.2", "inBundle": true, "license": "MIT", + "optional": true, "engines": { "node": ">=0.10.0" } @@ -10611,6 +10655,7 @@ "version": "1.0.2", "inBundle": true, "license": "MIT", + "optional": true, "engines": { "node": ">=0.10.0" } @@ -10619,6 +10664,7 @@ "version": "0.1.5", "inBundle": true, "license": "ISC", + "optional": true, "dependencies": { "os-homedir": "^1.0.0", "os-tmpdir": "^1.0.0" @@ -10628,6 +10674,7 @@ "version": "1.0.1", "inBundle": true, "license": "MIT", + "optional": true, "engines": { "node": ">=0.10.0" } @@ -10635,12 +10682,14 @@ "node_modules/fsevents/node_modules/process-nextick-args": { "version": "2.0.1", "inBundle": true, - "license": "MIT" + "license": "MIT", + "optional": true }, "node_modules/fsevents/node_modules/rc": { "version": "1.2.8", "inBundle": true, "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", + "optional": true, "dependencies": { "deep-extend": "^0.6.0", "ini": "~1.3.0", @@ -10655,6 +10704,7 @@ "version": "2.3.7", "inBundle": true, "license": "MIT", + "optional": true, "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -10669,6 +10719,7 @@ "version": "2.7.1", "inBundle": true, "license": "ISC", + "optional": true, "dependencies": { "glob": "^7.1.3" }, @@ -10679,22 +10730,26 @@ "node_modules/fsevents/node_modules/safe-buffer": { "version": "5.1.2", "inBundle": true, - "license": "MIT" + "license": "MIT", + "optional": true }, "node_modules/fsevents/node_modules/safer-buffer": { "version": "2.1.2", "inBundle": true, - "license": "MIT" + "license": "MIT", + "optional": true }, "node_modules/fsevents/node_modules/sax": { "version": "1.2.4", "inBundle": true, - "license": "ISC" + "license": "ISC", + "optional": true }, "node_modules/fsevents/node_modules/semver": { "version": "5.7.1", "inBundle": true, "license": "ISC", + "optional": true, "bin": { "semver": "bin/semver" } @@ -10702,17 +10757,20 @@ "node_modules/fsevents/node_modules/set-blocking": { "version": "2.0.0", "inBundle": true, - "license": "ISC" + "license": "ISC", + "optional": true }, "node_modules/fsevents/node_modules/signal-exit": { "version": "3.0.2", "inBundle": true, - "license": "ISC" + "license": "ISC", + "optional": true }, "node_modules/fsevents/node_modules/string_decoder": { "version": "1.1.1", "inBundle": true, "license": "MIT", + "optional": true, "dependencies": { "safe-buffer": "~5.1.0" } @@ -10721,6 +10779,7 @@ "version": "1.0.2", "inBundle": true, "license": "MIT", + "optional": true, "dependencies": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -10734,6 +10793,7 @@ "version": "3.0.1", "inBundle": true, "license": "MIT", + "optional": true, "dependencies": { "ansi-regex": "^2.0.0" }, @@ -10745,6 +10805,7 @@ "version": "2.0.1", "inBundle": true, "license": "MIT", + "optional": true, "engines": { "node": ">=0.10.0" } @@ -10753,6 +10814,7 @@ "version": "4.4.13", "inBundle": true, "license": "ISC", + "optional": true, "dependencies": { "chownr": "^1.1.1", "fs-minipass": "^1.2.5", @@ -10769,12 +10831,14 @@ "node_modules/fsevents/node_modules/util-deprecate": { "version": "1.0.2", "inBundle": true, - "license": "MIT" + "license": "MIT", + "optional": true }, "node_modules/fsevents/node_modules/wide-align": { "version": "1.1.3", "inBundle": true, "license": "ISC", + "optional": true, "dependencies": { "string-width": "^1.0.2 || 2" } @@ -10782,12 +10846,14 @@ "node_modules/fsevents/node_modules/wrappy": { "version": "1.0.2", "inBundle": true, - "license": "ISC" + "license": "ISC", + "optional": true }, "node_modules/fsevents/node_modules/yallist": { "version": "3.1.1", "inBundle": true, - "license": "ISC" + "license": "ISC", + "optional": true }, "node_modules/function-bind": { "version": "1.1.1", @@ -35276,19 +35342,23 @@ "dependencies": { "abbrev": { "version": "1.1.1", - "bundled": true + "bundled": true, + "optional": true }, "ansi-regex": { "version": "2.1.1", - "bundled": true + "bundled": true, + "optional": true }, "aproba": { "version": "1.2.0", - "bundled": true + "bundled": true, + "optional": true }, "are-we-there-yet": { "version": "1.1.5", "bundled": true, + "optional": true, "requires": { "delegates": "^1.0.0", "readable-stream": "^2.0.6" @@ -35296,11 +35366,13 @@ }, "balanced-match": { "version": "1.0.0", - "bundled": true + "bundled": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -35308,57 +35380,69 @@ }, "chownr": { "version": "1.1.4", - "bundled": true + "bundled": true, + "optional": true }, "code-point-at": { "version": "1.1.0", - "bundled": true + "bundled": true, + "optional": true }, "concat-map": { "version": "0.0.1", - "bundled": true + "bundled": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", - "bundled": true + "bundled": true, + "optional": true }, "core-util-is": { "version": "1.0.2", - "bundled": true + "bundled": true, + "optional": true }, "debug": { "version": "3.2.6", "bundled": true, + "optional": true, "requires": { "ms": "^2.1.1" } }, "deep-extend": { "version": "0.6.0", - "bundled": true + "bundled": true, + "optional": true }, "delegates": { "version": "1.0.0", - "bundled": true + "bundled": true, + "optional": true }, "detect-libc": { "version": "1.0.3", - "bundled": true + "bundled": true, + "optional": true }, "fs-minipass": { "version": "1.2.7", "bundled": true, + "optional": true, "requires": { "minipass": "^2.6.0" } }, "fs.realpath": { "version": "1.0.0", - "bundled": true + "bundled": true, + "optional": true }, "gauge": { "version": "2.7.4", "bundled": true, + "optional": true, "requires": { "aproba": "^1.0.3", "console-control-strings": "^1.0.0", @@ -35373,6 +35457,7 @@ "glob": { "version": "7.1.6", "bundled": true, + "optional": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -35384,11 +35469,13 @@ }, "has-unicode": { "version": "2.0.1", - "bundled": true + "bundled": true, + "optional": true }, "iconv-lite": { "version": "0.4.24", "bundled": true, + "optional": true, "requires": { "safer-buffer": ">= 2.1.2 < 3" } @@ -35396,6 +35483,7 @@ "ignore-walk": { "version": "3.0.3", "bundled": true, + "optional": true, "requires": { "minimatch": "^3.0.4" } @@ -35403,6 +35491,7 @@ "inflight": { "version": "1.0.6", "bundled": true, + "optional": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -35410,37 +35499,44 @@ }, "inherits": { "version": "2.0.4", - "bundled": true + "bundled": true, + "optional": true }, "ini": { "version": "1.3.5", - "bundled": true + "bundled": true, + "optional": true }, "is-fullwidth-code-point": { "version": "1.0.0", "bundled": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } }, "isarray": { "version": "1.0.0", - "bundled": true + "bundled": true, + "optional": true }, "minimatch": { "version": "3.0.4", "bundled": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } }, "minimist": { "version": "1.2.5", - "bundled": true + "bundled": true, + "optional": true }, "minipass": { "version": "2.9.0", "bundled": true, + "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -35449,6 +35545,7 @@ "minizlib": { "version": "1.3.3", "bundled": true, + "optional": true, "requires": { "minipass": "^2.9.0" } @@ -35456,17 +35553,20 @@ "mkdirp": { "version": "0.5.3", "bundled": true, + "optional": true, "requires": { "minimist": "^1.2.5" } }, "ms": { "version": "2.1.2", - "bundled": true + "bundled": true, + "optional": true }, "needle": { "version": "2.3.3", "bundled": true, + "optional": true, "requires": { "debug": "^3.2.6", "iconv-lite": "^0.4.4", @@ -35476,6 +35576,7 @@ "node-pre-gyp": { "version": "0.14.0", "bundled": true, + "optional": true, "requires": { "detect-libc": "^1.0.2", "mkdirp": "^0.5.1", @@ -35492,6 +35593,7 @@ "nopt": { "version": "4.0.3", "bundled": true, + "optional": true, "requires": { "abbrev": "1", "osenv": "^0.1.4" @@ -35500,17 +35602,20 @@ "npm-bundled": { "version": "1.1.1", "bundled": true, + "optional": true, "requires": { "npm-normalize-package-bin": "^1.0.1" } }, "npm-normalize-package-bin": { "version": "1.0.1", - "bundled": true + "bundled": true, + "optional": true }, "npm-packlist": { "version": "1.4.8", "bundled": true, + "optional": true, "requires": { "ignore-walk": "^3.0.1", "npm-bundled": "^1.0.1", @@ -35520,6 +35625,7 @@ "npmlog": { "version": "4.1.2", "bundled": true, + "optional": true, "requires": { "are-we-there-yet": "~1.1.2", "console-control-strings": "~1.1.0", @@ -35529,30 +35635,36 @@ }, "number-is-nan": { "version": "1.0.1", - "bundled": true + "bundled": true, + "optional": true }, "object-assign": { "version": "4.1.1", - "bundled": true + "bundled": true, + "optional": true }, "once": { "version": "1.4.0", "bundled": true, + "optional": true, "requires": { "wrappy": "1" } }, "os-homedir": { "version": "1.0.2", - "bundled": true + "bundled": true, + "optional": true }, "os-tmpdir": { "version": "1.0.2", - "bundled": true + "bundled": true, + "optional": true }, "osenv": { "version": "0.1.5", "bundled": true, + "optional": true, "requires": { "os-homedir": "^1.0.0", "os-tmpdir": "^1.0.0" @@ -35560,15 +35672,18 @@ }, "path-is-absolute": { "version": "1.0.1", - "bundled": true + "bundled": true, + "optional": true }, "process-nextick-args": { "version": "2.0.1", - "bundled": true + "bundled": true, + "optional": true }, "rc": { "version": "1.2.8", "bundled": true, + "optional": true, "requires": { "deep-extend": "^0.6.0", "ini": "~1.3.0", @@ -35579,6 +35694,7 @@ "readable-stream": { "version": "2.3.7", "bundled": true, + "optional": true, "requires": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -35592,37 +35708,45 @@ "rimraf": { "version": "2.7.1", "bundled": true, + "optional": true, "requires": { "glob": "^7.1.3" } }, "safe-buffer": { "version": "5.1.2", - "bundled": true + "bundled": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", - "bundled": true + "bundled": true, + "optional": true }, "sax": { "version": "1.2.4", - "bundled": true + "bundled": true, + "optional": true }, "semver": { "version": "5.7.1", - "bundled": true + "bundled": true, + "optional": true }, "set-blocking": { "version": "2.0.0", - "bundled": true + "bundled": true, + "optional": true }, "signal-exit": { "version": "3.0.2", - "bundled": true + "bundled": true, + "optional": true }, "string_decoder": { "version": "1.1.1", "bundled": true, + "optional": true, "requires": { "safe-buffer": "~5.1.0" } @@ -35630,6 +35754,7 @@ "string-width": { "version": "1.0.2", "bundled": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -35639,17 +35764,20 @@ "strip-ansi": { "version": "3.0.1", "bundled": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } }, "strip-json-comments": { "version": "2.0.1", - "bundled": true + "bundled": true, + "optional": true }, "tar": { "version": "4.4.13", "bundled": true, + "optional": true, "requires": { "chownr": "^1.1.1", "fs-minipass": "^1.2.5", @@ -35662,22 +35790,26 @@ }, "util-deprecate": { "version": "1.0.2", - "bundled": true + "bundled": true, + "optional": true }, "wide-align": { "version": "1.1.3", "bundled": true, + "optional": true, "requires": { "string-width": "^1.0.2 || 2" } }, "wrappy": { "version": "1.0.2", - "bundled": true + "bundled": true, + "optional": true }, "yallist": { "version": "3.1.1", - "bundled": true + "bundled": true, + "optional": true } } }, diff --git a/src/helpers/setWorkerProxy.ts b/src/helpers/setWorkerProxy.ts index c31301b0..83ad857a 100644 --- a/src/helpers/setWorkerProxy.ts +++ b/src/helpers/setWorkerProxy.ts @@ -18,3 +18,5 @@ export default function setWorkerProxy() { const workerProxy = new Proxy(Worker, workerHandler); Worker = workerProxy; } + +setWorkerProxy(); diff --git a/src/index.ts b/src/index.ts index 93f4cb4b..2d688d6e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -53,7 +53,7 @@ document.addEventListener('DOMContentLoaded', async() => { } */ }; - setWorkerProxy(); + setWorkerProxy; // const [_, touchSupport, userAgent, _rootScope, _appStateManager, _I18n, __/* , ___ */] = await Promise.all([ // import('./lib/polyfill'),