From f249c0f9accc98b81f191e4eda484ce7f44312fc Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 15 Oct 2019 01:40:29 +0000 Subject: [PATCH 01/80] chore(deps-dev): bump typescript from 3.6.3 to 3.6.4 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.6.3 to 3.6.4. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v3.6.3...v3.6.4) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index a2491c0..9d9ca4b 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "rollup-plugin-typescript2": "^0.24.3", "source-map-support": "^0.5.13", "ts-node": "^8.4.1", - "typescript": "^3.6.3" + "typescript": "^3.6.4" }, "peerDependencies": { "webextension-polyfill": "^0.4.0" diff --git a/yarn.lock b/yarn.lock index e70346e..0d78046 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1762,10 +1762,10 @@ type-check@~0.3.2: dependencies: prelude-ls "~1.1.2" -typescript@^3.6.3: - version "3.6.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.3.tgz#fea942fabb20f7e1ca7164ff626f1a9f3f70b4da" - integrity sha512-N7bceJL1CtRQ2RiG0AQME13ksR7DiuQh/QehubYcghzv20tnh+MQnQIuJddTmsbqYj+dztchykemz0zFzlvdQw== +typescript@^3.6.4: + version "3.6.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.4.tgz#b18752bb3792bc1a0281335f7f6ebf1bbfc5b91d" + integrity sha512-unoCll1+l+YK4i4F8f22TaNVPRHcD9PA3yCuZ8g5e0qGqlVlJ/8FSateOLLSagn+Yg5+ZwuPkL8LFUc0Jcvksg== typescript@~3.5.3: version "3.5.3" From e28ff795e57e887e44787979af91c2ed5bd7bb41 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 15 Oct 2019 01:41:10 +0000 Subject: [PATCH 02/80] chore(deps-dev): bump jsdom from 15.1.1 to 15.2.0 Bumps [jsdom](https://github.com/jsdom/jsdom) from 15.1.1 to 15.2.0. - [Release notes](https://github.com/jsdom/jsdom/releases) - [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md) - [Commits](https://github.com/jsdom/jsdom/compare/15.1.1...15.2.0) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- yarn.lock | 33 +++++++++++++++++++-------------- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 9d9ca4b..9fc8790 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "@microsoft/api-extractor": "^7.5.0", "@types/mocha": "^5.2.7", "cross-env": "^6.0.3", - "jsdom": "^15.1.1", + "jsdom": "^15.2.0", "jsdom-global": "^3.0.2", "mocha": "^6.2.1", "npm-run-all": "^4.1.5", diff --git a/yarn.lock b/yarn.lock index 0d78046..c8ae7d9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -132,7 +132,7 @@ acorn-walk@^6.0.1: resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-6.2.0.tgz#123cb8f3b84c2171f1f7fb252615b1c78a6b1a8c" integrity sha512-7evsyfH1cLOCdAzZAd43Cic04yKydNx0cF+7tiA19p1XnLLPU4dpCQOqpjqwokFe//vS0QqfqqjCS2JkiIs0cA== -acorn@^6.0.1, acorn@^6.1.1: +acorn@^6.0.1: version "6.3.0" resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.3.0.tgz#0087509119ffa4fc0a0041d1e93a417e68cb856e" integrity sha512-/czfa8BwS88b9gWQVhc8eknunSA2DoJpJyTQkhheIf5E48u1N0R4q/YxxsAeqRrmK9TQ/uYfgLDfZo91UlANIA== @@ -374,17 +374,22 @@ cross-spawn@^7.0.0: shebang-command "^1.2.0" which "^1.2.9" -cssom@0.3.x, cssom@^0.3.6: +cssom@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.4.1.tgz#b24111d236b6dbd00cdfacb5ab67a20473381fe3" + integrity sha512-6Aajq0XmukE7HdXUU6IoSWuH1H6gH9z6qmagsstTiN7cW2FNTsb+J2Chs+ufPgZCsV/yo8oaEudQLrb9dGxSVQ== + +cssom@~0.3.6: version "0.3.8" resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== -cssstyle@^1.2.2: - version "1.4.0" - resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-1.4.0.tgz#9d31328229d3c565c61e586b02041a28fccdccf1" - integrity sha512-GBrLZYZ4X4x6/QEoBnIrqb8B/f5l4+8me2dkom/j1Gtbxy0kBv6OGzKuAsGM75bkGwGAFkt56Iwg28S3XTZgSA== +cssstyle@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.0.0.tgz#911f0fe25532db4f5d44afc83f89cc4b82c97fe3" + integrity sha512-QXSAu2WBsSRXCPjvI43Y40m6fMevvyRm8JVAuF9ksQz5jha4pWP1wpaK7Yu5oLFc6+XAY+hj8YhefyXcBB53gg== dependencies: - cssom "0.3.x" + cssom "~0.3.6" csstype@^2.6.6: version "2.6.6" @@ -859,17 +864,17 @@ jsdom-global@^3.0.2: resolved "https://registry.yarnpkg.com/jsdom-global/-/jsdom-global-3.0.2.tgz#6bd299c13b0c4626b2da2c0393cd4385d606acb9" integrity sha1-a9KZwTsMRiay2iwDk81DhdYGrLk= -jsdom@^15.1.1: - version "15.1.1" - resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-15.1.1.tgz#21ed01f81d95ef4327f3e564662aef5e65881252" - integrity sha512-cQZRBB33arrDAeCrAEWn1U3SvrvC8XysBua9Oqg1yWrsY/gYcusloJC3RZJXuY5eehSCmws8f2YeliCqGSkrtQ== +jsdom@^15.2.0: + version "15.2.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-15.2.0.tgz#4baead4f464e733533ed6ac607ce440918cf5cbb" + integrity sha512-+hRyEfjRPFwTYMmSQ3/f7U9nP8ZNZmbkmUek760ZpxnCPWJIhaaLRuUSvpJ36fZKCGENxLwxClzwpOpnXNfChQ== dependencies: abab "^2.0.0" - acorn "^6.1.1" + acorn "^7.1.0" acorn-globals "^4.3.2" array-equal "^1.0.0" - cssom "^0.3.6" - cssstyle "^1.2.2" + cssom "^0.4.1" + cssstyle "^2.0.0" data-urls "^1.1.0" domexception "^1.0.1" escodegen "^1.11.1" From 5e52bc5b002d547ddc5ee71a4afc7b84abc326d6 Mon Sep 17 00:00:00 2001 From: Jack Works Date: Wed, 16 Oct 2019 10:12:57 +0800 Subject: [PATCH 03/80] feat: add isEqual to ValueRef --- src/DOM/LiveSelector.ts | 7 ------- src/util/ValueRef.spec.ts | 6 ++++++ src/util/ValueRef.ts | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/DOM/LiveSelector.ts b/src/DOM/LiveSelector.ts index 4c45fd9..f3ef5b0 100644 --- a/src/DOM/LiveSelector.ts +++ b/src/DOM/LiveSelector.ts @@ -435,13 +435,6 @@ export class LiveSelector { if (this.isSingleMode) return (arr.filter(nonNull) as T[])[0] as any return (arr.filter(nonNull) as T[]) as any } - /** - * {@inheritdoc LiveSelector.evaluate} - * @deprecated Use `evaluate()` instead, it's shorter. Will removed at 0.6.0 - */ - evaluateOnce(): SingleMode extends true ? (T | undefined) : T[] { - return this.evaluate() - } //#endregion /** * Call this function to enhance the debug experience in the Chrome DevTools diff --git a/src/util/ValueRef.spec.ts b/src/util/ValueRef.spec.ts index 8685a76..f108471 100644 --- a/src/util/ValueRef.spec.ts +++ b/src/util/ValueRef.spec.ts @@ -27,6 +27,12 @@ describe('ValueRef', () => { ref.value = ref.value done() }) + it('isEqual should work', done => { + const ref = new ValueRef({ a: 1 }, (a, b) => JSON.stringify(a) === JSON.stringify(b)) + ref.addListener(() => done('bad call')) + ref.value = { a: 1 } + done() + }) it('remove the listener', done => { const ref = new ValueRef(symb) const f = () => done('bad call') diff --git a/src/util/ValueRef.ts b/src/util/ValueRef.ts index 9cc2dd2..51ea2f2 100644 --- a/src/util/ValueRef.ts +++ b/src/util/ValueRef.ts @@ -24,7 +24,7 @@ export class ValueRef { /** Set current value */ set value(newVal: T) { const oldVal = this._value - if (newVal === oldVal) return + if (this.isEqual(newVal, oldVal)) return this._value = newVal for (const fn of this.watcher) { try { @@ -36,7 +36,7 @@ export class ValueRef { } /** All watchers */ private watcher = new Set<(newVal: T, oldVal: T) => void>() - constructor(private _value: T) {} + constructor(private _value: T, private isEqual: (a: T, b: T) => boolean = (a, b) => a === b) {} /** * Add a listener. This will return a remover. * @example From f39d05e76c1026d7dfad9e7ce509f283bd3919f0 Mon Sep 17 00:00:00 2001 From: Jack Works Date: Wed, 16 Oct 2019 13:31:40 +0800 Subject: [PATCH 04/80] feat: make ValueRef.isEqual public --- src/util/ValueRef.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/ValueRef.ts b/src/util/ValueRef.ts index 51ea2f2..18da26c 100644 --- a/src/util/ValueRef.ts +++ b/src/util/ValueRef.ts @@ -36,7 +36,7 @@ export class ValueRef { } /** All watchers */ private watcher = new Set<(newVal: T, oldVal: T) => void>() - constructor(private _value: T, private isEqual: (a: T, b: T) => boolean = (a, b) => a === b) {} + constructor(private _value: T, public isEqual: (a: T, b: T) => boolean = (a, b) => a === b) {} /** * Add a listener. This will return a remover. * @example From 716841ae898119113a3cb3d49d44deff84a4edd4 Mon Sep 17 00:00:00 2001 From: Jack Works Date: Wed, 16 Oct 2019 13:33:04 +0800 Subject: [PATCH 05/80] docs: regenerate doc --- .../kit.liveselector.evaluateonce.md | 22 ------------------- api-documents/kit.liveselector.md | 1 - api-documents/kit.valueref._constructor_.md | 3 ++- api-documents/kit.valueref.isequal.md | 11 ++++++++++ api-documents/kit.valueref.md | 3 ++- doc/holoflows-kit.api.report.md | 6 ++--- src/util/ValueRef.ts | 5 +++++ 7 files changed, 23 insertions(+), 28 deletions(-) delete mode 100644 api-documents/kit.liveselector.evaluateonce.md create mode 100644 api-documents/kit.valueref.isequal.md diff --git a/api-documents/kit.liveselector.evaluateonce.md b/api-documents/kit.liveselector.evaluateonce.md deleted file mode 100644 index cccbcea..0000000 --- a/api-documents/kit.liveselector.evaluateonce.md +++ /dev/null @@ -1,22 +0,0 @@ - - -[Home](./index.md) > [@holoflows/kit](./kit.md) > [LiveSelector](./kit.liveselector.md) > [evaluateOnce](./kit.liveselector.evaluateonce.md) - -## LiveSelector.evaluateOnce() method - -> Warning: This API is now obsolete. -> -> Use `evaluate()` instead, it's shorter. Will removed at 0.6.0 -> - -Evaluate selector expression - -Signature: - -```typescript -evaluateOnce(): SingleMode extends true ? (T | undefined) : T[]; -``` -Returns: - -`SingleMode extends true ? (T | undefined) : T[]` - diff --git a/api-documents/kit.liveselector.md b/api-documents/kit.liveselector.md index ecdae83..392d805 100644 --- a/api-documents/kit.liveselector.md +++ b/api-documents/kit.liveselector.md @@ -44,7 +44,6 @@ ls.evaluate() // returns all urls at the current time. | [enableSingleMode()](./kit.liveselector.enablesinglemode.md) | | Enable single mode. Only 1 result will be emitted. | | [enhanceDebugger()](./kit.liveselector.enhancedebugger.md) | static | Call this function to enhance the debug experience in the Chrome DevToolsYou need to open "Enable custom formatters" in your DevTools settings. | | [evaluate()](./kit.liveselector.evaluate.md) | | Evaluate selector expression | -| [evaluateOnce()](./kit.liveselector.evaluateonce.md) | | Evaluate selector expression | | [filter(f)](./kit.liveselector.filter.md) | | Select the elements of a LiveSelector that meet the condition specified in a callback function. | | [flat()](./kit.liveselector.flat.md) | | Flat T\[\]\[\] to T\[\] | | [getElementsByClassName(className)](./kit.liveselector.getelementsbyclassname.md) | | Select all element base on the current result. | diff --git a/api-documents/kit.valueref._constructor_.md b/api-documents/kit.valueref._constructor_.md index c069a37..a490a95 100644 --- a/api-documents/kit.valueref._constructor_.md +++ b/api-documents/kit.valueref._constructor_.md @@ -9,7 +9,7 @@ Constructs a new instance of the `ValueRef` class Signature: ```typescript -constructor(_value: T); +constructor(_value: T, isEqual?: (a: T, b: T) => boolean); ``` ## Parameters @@ -17,4 +17,5 @@ constructor(_value: T); | Parameter | Type | Description | | --- | --- | --- | | \_value | T | | +| isEqual | (a: T, b: T) => boolean | | diff --git a/api-documents/kit.valueref.isequal.md b/api-documents/kit.valueref.isequal.md new file mode 100644 index 0000000..aabe0f7 --- /dev/null +++ b/api-documents/kit.valueref.isequal.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@holoflows/kit](./kit.md) > [ValueRef](./kit.valueref.md) > [isEqual](./kit.valueref.isequal.md) + +## ValueRef.isEqual property + +Signature: + +```typescript +isEqual: (a: T, b: T) => boolean; +``` diff --git a/api-documents/kit.valueref.md b/api-documents/kit.valueref.md index 99d8979..f269168 100644 --- a/api-documents/kit.valueref.md +++ b/api-documents/kit.valueref.md @@ -30,12 +30,13 @@ ref.value = 42 // useRef will receive the new value | Constructor | Modifiers | Description | | --- | --- | --- | -| [(constructor)(\_value)](./kit.valueref._constructor_.md) | | Constructs a new instance of the ValueRef class | +| [(constructor)(\_value, isEqual)](./kit.valueref._constructor_.md) | | Constructs a new instance of the ValueRef class | ## Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | +| [isEqual](./kit.valueref.isequal.md) | | (a: T, b: T) => boolean | | | [value](./kit.valueref.value.md) | | T | Set current value | ## Methods diff --git a/doc/holoflows-kit.api.report.md b/doc/holoflows-kit.api.report.md index f9afc7b..ef91759 100644 --- a/doc/holoflows-kit.api.report.md +++ b/doc/holoflows-kit.api.report.md @@ -132,8 +132,6 @@ export class LiveSelector { enableSingleMode(): LiveSelector; static enhanceDebugger(): void; evaluate(): SingleMode extends true ? (T | undefined) : T[]; - // @deprecated - evaluateOnce(): SingleMode extends true ? (T | undefined) : T[]; filter(f: (value: T, index: number, array: T[]) => any): LiveSelector, SingleMode>; flat(): LiveSelector ? U : never, SingleMode>; getElementsByClassName(className: string): LiveSelector; @@ -195,8 +193,10 @@ export { Serialization } // @public @eventProperty export class ValueRef { - constructor(_value: T); + constructor(_value: T, isEqual?: (a: T, b: T) => boolean); addListener(fn: (newVal: T, oldVal: T) => void): () => void; + // (undocumented) + isEqual: (a: T, b: T) => boolean; removeAllListener(): void; removeListener(fn: (newVal: T, oldVal: T) => void): void; value: T; diff --git a/src/util/ValueRef.ts b/src/util/ValueRef.ts index 18da26c..e0dc56a 100644 --- a/src/util/ValueRef.ts +++ b/src/util/ValueRef.ts @@ -36,6 +36,11 @@ export class ValueRef { } /** All watchers */ private watcher = new Set<(newVal: T, oldVal: T) => void>() + /** + * + * @param _value The internal value + * @param isEqual The comparer function + */ constructor(private _value: T, public isEqual: (a: T, b: T) => boolean = (a, b) => a === b) {} /** * Add a listener. This will return a remover. From dd105c7c198f4dd5ac5a884c0e23ae821165adf3 Mon Sep 17 00:00:00 2001 From: Jack Works Date: Wed, 16 Oct 2019 15:09:48 +0800 Subject: [PATCH 06/80] fix: update jsx renderer --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 9fc8790..dd0cb0b 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "@types/lodash-es": "^4.1.4", "async-call-rpc": "^1.0.0", "concurrent-lock": "^1.0.7", - "jsx-jsonml-devtools-renderer": "^1.4.0", + "jsx-jsonml-devtools-renderer": "^1.4.1", "lodash-es": "^4.17.15", "memorize-decorator": "^0.2.2", "mitt": "^1.1.3", diff --git a/yarn.lock b/yarn.lock index c8ae7d9..b00c849 100644 --- a/yarn.lock +++ b/yarn.lock @@ -933,10 +933,10 @@ jsprim@^1.2.2: json-schema "0.2.3" verror "1.10.0" -jsx-jsonml-devtools-renderer@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/jsx-jsonml-devtools-renderer/-/jsx-jsonml-devtools-renderer-1.4.0.tgz#ab3ca51c913a4e04616154e6242f4286d1b9c253" - integrity sha512-if1QA9ZLdtpYq9CZayD2dcj7pcdS7i2aVX6x0TP+Wuwr58OspyuhR8uimZXRL+KYjZyBr1FnI4fLPbF9bmOOag== +jsx-jsonml-devtools-renderer@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jsx-jsonml-devtools-renderer/-/jsx-jsonml-devtools-renderer-1.4.1.tgz#334f3343a883be895692482cc916705dccbf9372" + integrity sha512-gTBQxtOznjpAuo20iTfR1urhrqTRY9Ss3HL/bGVSPet6bKGzED1XfcSS1TTJ/6HetybW3qGUkdUOdJiuhdY8bQ== dependencies: csstype "^2.6.6" From a8f18485396ab87d190787c1d7b70b1f84634237 Mon Sep 17 00:00:00 2001 From: Jack Works Date: Wed, 16 Oct 2019 20:33:37 +0800 Subject: [PATCH 07/80] chore: bump version to 0.6.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dd0cb0b..5e6b685 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@holoflows/kit", - "version": "0.6.0", + "version": "0.6.1", "module": "./es/index.js", "main": "./umd/index.js", "typings": "./es/", From c4444f9866de12e9a8a63d4fade1ac589cd29768 Mon Sep 17 00:00:00 2001 From: SunriseFox Date: Fri, 18 Oct 2019 18:53:30 +0800 Subject: [PATCH 08/80] fix(mc): missing instanceKey when dispatch event to document --- src/Extension/MessageCenter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Extension/MessageCenter.ts b/src/Extension/MessageCenter.ts index 9338883..aeb3011 100644 --- a/src/Extension/MessageCenter.ts +++ b/src/Extension/MessageCenter.ts @@ -109,7 +109,7 @@ export class MessageCenter { } if (alsoSendToDocument && typeof document !== 'undefined' && document.dispatchEvent) { const event = new CustomEvent(MessageCenterEvent, { - detail: await this.serialization.serialization({ data, key }), + detail: serialized, }) document.dispatchEvent(event) } From 75470b3c65e924a84c7083cc643a34b721f6e9a9 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2019 11:21:22 +0000 Subject: [PATCH 09/80] chore(deps-dev): bump mocha from 6.2.1 to 6.2.2 Bumps [mocha](https://github.com/mochajs/mocha) from 6.2.1 to 6.2.2. - [Release notes](https://github.com/mochajs/mocha/releases) - [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md) - [Commits](https://github.com/mochajs/mocha/compare/v6.2.1...v6.2.2) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index b00c849..14b11e1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1078,9 +1078,9 @@ mkdirp@0.5.1: minimist "0.0.8" mocha@^6.2.1: - version "6.2.1" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-6.2.1.tgz#da941c99437da9bac412097859ff99543969f94c" - integrity sha512-VCcWkLHwk79NYQc8cxhkmI8IigTIhsCwZ6RTxQsqK6go4UvEhzJkYuHm8B2YtlSxcYq2fY+ucr4JBwoD6ci80A== + version "6.2.2" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-6.2.2.tgz#5d8987e28940caf8957a7d7664b910dc5b2fea20" + integrity sha512-FgDS9Re79yU1xz5d+C4rv1G7QagNGHZ+iXF81hO8zY35YZZcLEsJVfFolfsqKFWunATEvNzMK0r/CwWd/szO9A== dependencies: ansi-colors "3.2.3" browser-stdout "1.3.1" From ced5e839bdd1a0587db28268a599c614cf0479e7 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2019 11:23:52 +0000 Subject: [PATCH 10/80] chore(deps): bump jsx-jsonml-devtools-renderer from 1.4.1 to 1.4.2 Bumps [jsx-jsonml-devtools-renderer](https://github.com/Jack-Works/jsx-jsonml-devtools-renderer) from 1.4.1 to 1.4.2. - [Release notes](https://github.com/Jack-Works/jsx-jsonml-devtools-renderer/releases) - [Commits](https://github.com/Jack-Works/jsx-jsonml-devtools-renderer/commits) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 14b11e1..20db9b5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -934,9 +934,9 @@ jsprim@^1.2.2: verror "1.10.0" jsx-jsonml-devtools-renderer@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/jsx-jsonml-devtools-renderer/-/jsx-jsonml-devtools-renderer-1.4.1.tgz#334f3343a883be895692482cc916705dccbf9372" - integrity sha512-gTBQxtOznjpAuo20iTfR1urhrqTRY9Ss3HL/bGVSPet6bKGzED1XfcSS1TTJ/6HetybW3qGUkdUOdJiuhdY8bQ== + version "1.4.2" + resolved "https://registry.yarnpkg.com/jsx-jsonml-devtools-renderer/-/jsx-jsonml-devtools-renderer-1.4.2.tgz#600edbe8841b4a88665d47275464d747d78ba6e5" + integrity sha512-G2/5Nh2BXnOWzfXTKwHpSg05ZI9l6yf1VAx7tbgjkoUN6fBdcqev0jgBxD8tQgy+zBBxXI73Uu6qZG4NmefV0g== dependencies: csstype "^2.6.6" From c0bb5c1de1a4dc9963b5141b4f84b7cc7e5ba1cd Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2019 11:23:41 +0000 Subject: [PATCH 11/80] chore(deps-dev): bump @microsoft/api-extractor from 7.5.0 to 7.5.1 Bumps [@microsoft/api-extractor](https://github.com/microsoft/rushstack) from 7.5.0 to 7.5.1. - [Release notes](https://github.com/microsoft/rushstack/releases) - [Commits](https://github.com/microsoft/rushstack/commits) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/yarn.lock b/yarn.lock index 20db9b5..c9ea54e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -31,13 +31,13 @@ "@microsoft/tsdoc" "0.12.14" "@microsoft/api-extractor@^7.5.0": - version "7.5.0" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.5.0.tgz#5dd0f50bb7a30f8512b65ed9aba94a2b76c68a21" - integrity sha512-CxKNZFD9TRo/y8MQzlk4z/Z5jPCaQsDq7ON9baE544CKnmF4sNlmoS9ydkt0As3v6OYKjp50d2N4NAmZoOVXzg== + version "7.5.1" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.5.1.tgz#363c95af2546aa83e6c0086ffbf7368daf0c7bef" + integrity sha512-pUMrXO+nW31piHhmBznlBdYEiemSOQ8sYcEm8T6tfDvAQdPxg3oaHfrau/DseUY5haAFh+2hY+rl0GUl5CEKbQ== dependencies: "@microsoft/api-extractor-model" "7.5.1" "@microsoft/node-core-library" "3.15.1" - "@microsoft/ts-command-line" "4.3.2" + "@microsoft/ts-command-line" "4.3.3" "@microsoft/tsdoc" "0.12.14" colors "~1.2.1" lodash "~4.17.15" @@ -65,6 +65,15 @@ argparse "~1.0.9" colors "~1.2.1" +"@microsoft/ts-command-line@4.3.3": + version "4.3.3" + resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.3.tgz#bcbebafedd2f8af7e40bc6b6c1d24018f821d3d6" + integrity sha512-dzAdHwmw0p0T2Nra91nPd5n57fw5bRQEWGPe5iZOsqoLpjU/NCgBpmBdbvx1Oy3+YRnrV4lSeSbN6C7sSniwmQ== + dependencies: + "@types/argparse" "1.0.33" + argparse "~1.0.9" + colors "~1.2.1" + "@microsoft/tsdoc@0.12.14": version "0.12.14" resolved "https://registry.yarnpkg.com/@microsoft/tsdoc/-/tsdoc-0.12.14.tgz#0e0810a0a174e50e22dfe8edb30599840712f22d" From 82bd1d5b7c2fc1e5f3539cdf8e05520f7cd843a5 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2019 11:22:43 +0000 Subject: [PATCH 12/80] chore(deps-dev): bump rollup from 1.23.1 to 1.25.1 Bumps [rollup](https://github.com/rollup/rollup) from 1.23.1 to 1.25.1. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v1.23.1...v1.25.1) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index c9ea54e..867dffb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1498,9 +1498,9 @@ rollup-pluginutils@^2.6.0, rollup-pluginutils@^2.8.1: estree-walker "^0.6.1" rollup@^1.23.1: - version "1.23.1" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.23.1.tgz#0315a0f5d0dfb056e6363e1dff05b89ac2da6b8e" - integrity sha512-95C1GZQpr/NIA0kMUQmSjuMDQ45oZfPgDBcN0yZwBG7Kee//m7H68vgIyg+SPuyrTZ5PrXfyLK80OzXeKG5dAA== + version "1.25.1" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.25.1.tgz#905707d686dc8d7218af63dcfb9e37d1f3dc3c34" + integrity sha512-K8ytdEzMa6anHSnfTIs2BLB+NXlQ4qmWwdNHBpYQNWCbZAzj+DRVk7+ssbLSgddwpFW1nThr2GElR+jASF2NPA== dependencies: "@types/estree" "*" "@types/node" "*" From a6ba337fd54a006cf01734f1e6cc2d4e21ea2635 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2019 11:21:53 +0000 Subject: [PATCH 13/80] chore(deps-dev): bump @microsoft/api-documenter from 7.5.0 to 7.5.2 Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack) from 7.5.0 to 7.5.2. - [Release notes](https://github.com/microsoft/rushstack/releases) - [Commits](https://github.com/microsoft/rushstack/commits) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yarn.lock b/yarn.lock index 867dffb..31a277e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10,13 +10,13 @@ regenerator-runtime "^0.13.2" "@microsoft/api-documenter@^7.5.0": - version "7.5.0" - resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.5.0.tgz#444265cf9080ca4574ea57e72216a0921b3ae377" - integrity sha512-jeLFI++McNAu9deF47AnPvlMnZIeSGRQwjo5GVIZ378nN7tOziZhUFnmKfwPW8gQqjVVylB5tudxI4LvzC6BUA== + version "7.5.2" + resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.5.2.tgz#c59513670349e1409818a0ec44456d54499decac" + integrity sha512-paHARGvWk25am90/ZDr7whOzXlgBOCj3jBml52Io2GYU+lCxHGpiv8+tdAgq09d6bX7F3WeA6j8mqPo/Yv8oZg== dependencies: "@microsoft/api-extractor-model" "7.5.1" "@microsoft/node-core-library" "3.15.1" - "@microsoft/ts-command-line" "4.3.2" + "@microsoft/ts-command-line" "4.3.3" "@microsoft/tsdoc" "0.12.14" colors "~1.2.1" js-yaml "~3.13.1" From bc64d238201c367510fa1870e54b5e32c9a3bc6e Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2019 11:23:26 +0000 Subject: [PATCH 14/80] chore(deps-dev): bump rollup from 1.25.1 to 1.26.0 Bumps [rollup](https://github.com/rollup/rollup) from 1.25.1 to 1.26.0. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v1.25.1...v1.26.0) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/yarn.lock b/yarn.lock index 31a277e..65573a3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -56,15 +56,6 @@ jju "~1.4.0" z-schema "~3.18.3" -"@microsoft/ts-command-line@4.3.2": - version "4.3.2" - resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.2.tgz#87341de2e24f279259297ebd38530300a9f97bc3" - integrity sha512-2QeyilabCe6IpBylPXuY6dCA1S9ym3Ii0zakXVPpyfjSj1NesnyuUeuh6e8kyIqzqJ+3LYjfPG63XzUBtwGqqw== - dependencies: - "@types/argparse" "1.0.33" - argparse "~1.0.9" - colors "~1.2.1" - "@microsoft/ts-command-line@4.3.3": version "4.3.3" resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.3.tgz#bcbebafedd2f8af7e40bc6b6c1d24018f821d3d6" @@ -1498,9 +1489,9 @@ rollup-pluginutils@^2.6.0, rollup-pluginutils@^2.8.1: estree-walker "^0.6.1" rollup@^1.23.1: - version "1.25.1" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.25.1.tgz#905707d686dc8d7218af63dcfb9e37d1f3dc3c34" - integrity sha512-K8ytdEzMa6anHSnfTIs2BLB+NXlQ4qmWwdNHBpYQNWCbZAzj+DRVk7+ssbLSgddwpFW1nThr2GElR+jASF2NPA== + version "1.26.0" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.26.0.tgz#cf40fd5e1edc4d7f3d4235a0a43f1c2be1cf294b" + integrity sha512-5HljNYn9icFvXX+Oe97qY5TWvnWhKqgGT0HGeWWqFPx7w7+Anzg7dfHMtUif7YYy6QxAgynDSwK6uxbgcrVUxw== dependencies: "@types/estree" "*" "@types/node" "*" From 217a2cd53b22852e7ee2edc9786bf9c5c5eb3fe1 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2019 03:18:24 +0000 Subject: [PATCH 15/80] chore(deps-dev): bump @microsoft/api-documenter from 7.5.2 to 7.5.4 Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack) from 7.5.2 to 7.5.4. - [Release notes](https://github.com/microsoft/rushstack/releases) - [Commits](https://github.com/microsoft/rushstack/compare/@microsoft/api-extractor-model_v7.5.2...@microsoft/api-documenter_v7.5.4) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 40 ++++++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/yarn.lock b/yarn.lock index 65573a3..9fae7ab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10,13 +10,13 @@ regenerator-runtime "^0.13.2" "@microsoft/api-documenter@^7.5.0": - version "7.5.2" - resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.5.2.tgz#c59513670349e1409818a0ec44456d54499decac" - integrity sha512-paHARGvWk25am90/ZDr7whOzXlgBOCj3jBml52Io2GYU+lCxHGpiv8+tdAgq09d6bX7F3WeA6j8mqPo/Yv8oZg== + version "7.5.4" + resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.5.4.tgz#4aaec26c010eea71c6d8a17955c3307c2e63aae4" + integrity sha512-N/mDVpf1V4g6UTbFlrsF9LT09SFTb362gm+ZnPUA1OAGV62SqBBe8ZJO7LPFyLo1UOYGUpfK+YgS6dlGKItxkg== dependencies: - "@microsoft/api-extractor-model" "7.5.1" - "@microsoft/node-core-library" "3.15.1" - "@microsoft/ts-command-line" "4.3.3" + "@microsoft/api-extractor-model" "7.5.2" + "@microsoft/node-core-library" "3.16.0" + "@microsoft/ts-command-line" "4.3.4" "@microsoft/tsdoc" "0.12.14" colors "~1.2.1" js-yaml "~3.13.1" @@ -30,6 +30,14 @@ "@microsoft/node-core-library" "3.15.1" "@microsoft/tsdoc" "0.12.14" +"@microsoft/api-extractor-model@7.5.2": + version "7.5.2" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.5.2.tgz#39a3c015ca01a3435b5f161b8fce07117e6039be" + integrity sha512-wDXQ6IvrVg7tp3iqA+7f7yrSzjUPQ2kVNKsrxD5AqbGeohsJYePbmWvz6V8yxxO7ZuM9W7V5zLY6pYh4epq8Dg== + dependencies: + "@microsoft/node-core-library" "3.16.0" + "@microsoft/tsdoc" "0.12.14" + "@microsoft/api-extractor@^7.5.0": version "7.5.1" resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.5.1.tgz#363c95af2546aa83e6c0086ffbf7368daf0c7bef" @@ -56,6 +64,17 @@ jju "~1.4.0" z-schema "~3.18.3" +"@microsoft/node-core-library@3.16.0": + version "3.16.0" + resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.16.0.tgz#cdd3a27b1513cb470d1098ba32d50ca22a1fb75c" + integrity sha512-zjgOAmOhWgE5eX8ofmRagcomeIhs96GizRm7m9UfAuzhEmWtQSOE33/WpZzoyw41S/bjevHi7YbkY+R70mdjFg== + dependencies: + "@types/node" "8.10.54" + colors "~1.2.1" + fs-extra "~7.0.1" + jju "~1.4.0" + z-schema "~3.18.3" + "@microsoft/ts-command-line@4.3.3": version "4.3.3" resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.3.tgz#bcbebafedd2f8af7e40bc6b6c1d24018f821d3d6" @@ -65,6 +84,15 @@ argparse "~1.0.9" colors "~1.2.1" +"@microsoft/ts-command-line@4.3.4": + version "4.3.4" + resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.4.tgz#a52214bd86f6d65c8975f46e6b12fad68545058a" + integrity sha512-PNqh7tACiOaM3znLX2EjECbabk0PfChEn6lMzrC62+xtV2Xr0N0dj1PtvDX125cxxF4FNcWoZqCODzJI/cB0GA== + dependencies: + "@types/argparse" "1.0.33" + argparse "~1.0.9" + colors "~1.2.1" + "@microsoft/tsdoc@0.12.14": version "0.12.14" resolved "https://registry.yarnpkg.com/@microsoft/tsdoc/-/tsdoc-0.12.14.tgz#0e0810a0a174e50e22dfe8edb30599840712f22d" From d6d24a501c1def1989dd950fad9f53637c1ab367 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2019 03:18:31 +0000 Subject: [PATCH 16/80] chore(deps-dev): bump @microsoft/api-extractor from 7.5.1 to 7.5.2 Bumps [@microsoft/api-extractor](https://github.com/microsoft/rushstack) from 7.5.1 to 7.5.2. - [Release notes](https://github.com/microsoft/rushstack/releases) - [Commits](https://github.com/microsoft/rushstack/commits/@microsoft/api-extractor-model_v7.5.2) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/yarn.lock b/yarn.lock index 9fae7ab..fc692b5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -39,13 +39,13 @@ "@microsoft/tsdoc" "0.12.14" "@microsoft/api-extractor@^7.5.0": - version "7.5.1" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.5.1.tgz#363c95af2546aa83e6c0086ffbf7368daf0c7bef" - integrity sha512-pUMrXO+nW31piHhmBznlBdYEiemSOQ8sYcEm8T6tfDvAQdPxg3oaHfrau/DseUY5haAFh+2hY+rl0GUl5CEKbQ== + version "7.5.2" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.5.2.tgz#4da588e71c6342ec66b6b087a471aa773a232c81" + integrity sha512-IGMpxhiTaUsGGdrGqCwhwGbyJNMwrVe0wi3vYqFL0G93N+DO2uI89/JNGxaiGjgQ8nCem6u8hPd0NhOcGU6DcA== dependencies: - "@microsoft/api-extractor-model" "7.5.1" - "@microsoft/node-core-library" "3.15.1" - "@microsoft/ts-command-line" "4.3.3" + "@microsoft/api-extractor-model" "7.5.2" + "@microsoft/node-core-library" "3.16.0" + "@microsoft/ts-command-line" "4.3.4" "@microsoft/tsdoc" "0.12.14" colors "~1.2.1" lodash "~4.17.15" From 8f706002c78b65b6dccb21732321e5d4c20490d2 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2019 03:21:49 +0000 Subject: [PATCH 17/80] chore(deps): bump mitt from 1.1.3 to 1.2.0 Bumps [mitt](https://github.com/developit/mitt) from 1.1.3 to 1.2.0. - [Release notes](https://github.com/developit/mitt/releases) - [Changelog](https://github.com/developit/mitt/blob/master/CHANGELOG.md) - [Commits](https://github.com/developit/mitt/compare/v1.1.3...1.2.0) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 34 +++------------------------------- 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/yarn.lock b/yarn.lock index fc692b5..2aa5c44 100644 --- a/yarn.lock +++ b/yarn.lock @@ -22,14 +22,6 @@ js-yaml "~3.13.1" resolve "1.8.1" -"@microsoft/api-extractor-model@7.5.1": - version "7.5.1" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.5.1.tgz#54732ab60cc0761784a54fc00eaaf96145724160" - integrity sha512-qzgmJeoqpJqYDS1yj9YTPdd/+9OWGFwfzGFyr6kVarexomdPSltcoQYIS5JnrB/RFNeUgTNUlwn5mYdyp2Xv6A== - dependencies: - "@microsoft/node-core-library" "3.15.1" - "@microsoft/tsdoc" "0.12.14" - "@microsoft/api-extractor-model@7.5.2": version "7.5.2" resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.5.2.tgz#39a3c015ca01a3435b5f161b8fce07117e6039be" @@ -53,17 +45,6 @@ source-map "~0.6.1" typescript "~3.5.3" -"@microsoft/node-core-library@3.15.1": - version "3.15.1" - resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.15.1.tgz#78f6249493b09e9a5c39df9e55c5401d69f23f19" - integrity sha512-fUrcgu+w40k2GW8fiOUFby7jaKAAuDKaTrQuFQ3j+0Pg3ANnJ2uKtVf3bgFiNu+uVKpwVtLo4CPS8TwFduJRow== - dependencies: - "@types/node" "8.10.54" - colors "~1.2.1" - fs-extra "~7.0.1" - jju "~1.4.0" - z-schema "~3.18.3" - "@microsoft/node-core-library@3.16.0": version "3.16.0" resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.16.0.tgz#cdd3a27b1513cb470d1098ba32d50ca22a1fb75c" @@ -75,15 +56,6 @@ jju "~1.4.0" z-schema "~3.18.3" -"@microsoft/ts-command-line@4.3.3": - version "4.3.3" - resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.3.tgz#bcbebafedd2f8af7e40bc6b6c1d24018f821d3d6" - integrity sha512-dzAdHwmw0p0T2Nra91nPd5n57fw5bRQEWGPe5iZOsqoLpjU/NCgBpmBdbvx1Oy3+YRnrV4lSeSbN6C7sSniwmQ== - dependencies: - "@types/argparse" "1.0.33" - argparse "~1.0.9" - colors "~1.2.1" - "@microsoft/ts-command-line@4.3.4": version "4.3.4" resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.4.tgz#a52214bd86f6d65c8975f46e6b12fad68545058a" @@ -1089,9 +1061,9 @@ minimist@0.0.8: integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= mitt@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/mitt/-/mitt-1.1.3.tgz#528c506238a05dce11cd914a741ea2cc332da9b8" - integrity sha512-mUDCnVNsAi+eD6qA0HkRkwYczbLHJ49z17BGe2PYRhZL4wpZUFZGJHU7/5tmvohoma+Hdn0Vh/oJTiPEmgSruA== + version "1.2.0" + resolved "https://registry.yarnpkg.com/mitt/-/mitt-1.2.0.tgz#cb24e6569c806e31bd4e3995787fe38a04fdf90d" + integrity sha512-r6lj77KlwqLhIUku9UWYes7KJtsczvolZkzp8hbaDPPaE24OmWl5s539Mytlj22siEQKosZ26qCBgda2PKwoJw== mixed-map@^0.1.0: version "0.1.1" From 79c7c4b4a442cd3432a76ccb9c302eec393ace8a Mon Sep 17 00:00:00 2001 From: Jack Works Date: Tue, 29 Oct 2019 11:45:34 +0800 Subject: [PATCH 18/80] fix: type error when upgrade mitt --- src/DOM/Watcher.ts | 2 +- src/Extension/MessageCenter.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DOM/Watcher.ts b/src/DOM/Watcher.ts index 75d5875..d3ba34f 100644 --- a/src/DOM/Watcher.ts +++ b/src/DOM/Watcher.ts @@ -506,7 +506,7 @@ export abstract class Watcher = { onAdd: false, onChange: false, diff --git a/src/Extension/MessageCenter.ts b/src/Extension/MessageCenter.ts index aeb3011..eeaf9e6 100644 --- a/src/Extension/MessageCenter.ts +++ b/src/Extension/MessageCenter.ts @@ -17,7 +17,7 @@ export class MessageCenter { * @defaultValue NoSerialization */ public serialization = NoSerialization - private eventEmitter = new mitt() + private eventEmitter = mitt() private listener = async (request: InternalMessageType | Event) => { let { key, data, instanceKey } = await this.serialization.deserialization( (request as CustomEvent).detail || request, From 707f74f541d9590238fb7c4044e83210371cfde7 Mon Sep 17 00:00:00 2001 From: Mingye Wang Date: Fri, 1 Nov 2019 21:50:58 +0800 Subject: [PATCH 19/80] chore: punch holes in ts opts to allow for changing baseUrl --- package.json | 4 ++-- rollup.config.js | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5e6b685..adbc1a5 100644 --- a/package.json +++ b/package.json @@ -21,10 +21,10 @@ }, "sideEffects": false, "scripts": { - "start": "cross-env NODE_ENV=development npm-run-all --parallel start:tsc start:rollup", + "start": "cross-env NODE_ENV=development npm-run-all --parallel \"start:tsc -- {@}\" start:rollup", "start:tsc": "tsc --watch", "start:rollup": "rollup -c -w", - "build": "cross-env NODE_ENV=production npm-run-all --parallel clean build:tsc build:rollup", + "build": "cross-env NODE_ENV=production npm-run-all --parallel clean \"build:tsc -- {@}\" build:rollup", "build:tsc": "tsc", "build:rollup": "rollup -c -m", "clean": "rimraf ./es ./umd", diff --git a/rollup.config.js b/rollup.config.js index be53b69..b023145 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -15,8 +15,11 @@ const config = { browser: true, preferBuiltins: false, mainFields: ['module', 'main'], + customResolveOptions: { + moduleDirectory: process.env.MODULE_DIR || 'node_modules', + } }), - typescript({ tsconfigOverride: { compilerOptions: { target: 'es6' } } }), + typescript({ tsconfigOverride: { compilerOptions: { target: 'es6', ...JSON.parse(process.env.TS_OPTS) } } }), replace({ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production'), }), From 74a5f8c0cb0e1f81b81b4e93498df3d3a610dd84 Mon Sep 17 00:00:00 2001 From: Mingye Wang Date: Tue, 5 Nov 2019 18:42:38 +0800 Subject: [PATCH 20/80] squashme: avoid parsing "undefined" --- rollup.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index b023145..4608498 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -3,6 +3,10 @@ import commonjs from 'rollup-plugin-commonjs' import nodeResolve from 'rollup-plugin-node-resolve' import replace from 'rollup-plugin-replace' +function parseMaybe(s) { + return typeof s === 'string' ? JSON.parse(s) : {} +} + const config = { input: './src/index.ts', output: { @@ -19,7 +23,7 @@ const config = { moduleDirectory: process.env.MODULE_DIR || 'node_modules', } }), - typescript({ tsconfigOverride: { compilerOptions: { target: 'es6', ...JSON.parse(process.env.TS_OPTS) } } }), + typescript({ tsconfigOverride: { compilerOptions: { target: 'es6', ...parseMaybe(process.env.TS_OPTS) } } }), replace({ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production'), }), From b60d99235f873bbed025531e0f85e067e1ddbfcc Mon Sep 17 00:00:00 2001 From: Mingye Wang Date: Tue, 5 Nov 2019 19:34:46 +0800 Subject: [PATCH 21/80] chore: move type deps out of runtime deps --- package.json | 10 +++++----- yarn.lock | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index adbc1a5..b4f23df 100644 --- a/package.json +++ b/package.json @@ -10,14 +10,12 @@ }, "readme": "https://github.com/project-holoflows/holoflows-kit/blob/master/README.md", "dependencies": { - "@types/lodash-es": "^4.1.4", "async-call-rpc": "^1.0.0", "concurrent-lock": "^1.0.7", "jsx-jsonml-devtools-renderer": "^1.4.1", "lodash-es": "^4.17.15", "memorize-decorator": "^0.2.2", - "mitt": "^1.1.3", - "web-ext-types": "^3.2.1" + "mitt": "^1.1.3" }, "sideEffects": false, "scripts": { @@ -37,6 +35,8 @@ "devDependencies": { "@microsoft/api-documenter": "^7.5.0", "@microsoft/api-extractor": "^7.5.0", + "@rollup/plugin-replace": "^2.2.0", + "@types/lodash-es": "^4.1.4", "@types/mocha": "^5.2.7", "cross-env": "^6.0.3", "jsdom": "^15.2.0", @@ -47,11 +47,11 @@ "rollup": "^1.23.1", "rollup-plugin-commonjs": "^10.1.0", "rollup-plugin-node-resolve": "^5.2.0", - "rollup-plugin-replace": "^2.2.0", "rollup-plugin-typescript2": "^0.24.3", "source-map-support": "^0.5.13", "ts-node": "^8.4.1", - "typescript": "^3.6.4" + "typescript": "^3.6.4", + "web-ext-types": "^3.2.1" }, "peerDependencies": { "webextension-polyfill": "^0.4.0" diff --git a/yarn.lock b/yarn.lock index 2aa5c44..d3e3a02 100644 --- a/yarn.lock +++ b/yarn.lock @@ -70,6 +70,15 @@ resolved "https://registry.yarnpkg.com/@microsoft/tsdoc/-/tsdoc-0.12.14.tgz#0e0810a0a174e50e22dfe8edb30599840712f22d" integrity sha512-518yewjSga1jLdiLrcmpMFlaba5P+50b0TWNFUpC+SL9Yzf0kMi57qw+bMl+rQ08cGqH1vLx4eg9YFUbZXgZ0Q== +"@rollup/plugin-replace@^2.2.0": + version "2.2.0" + resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-2.2.0.tgz#e3b11881fb1ab1be7570e1ccd175b8249e448c52" + integrity sha512-DnALjyAdfAyQ4i6tJdi4v6rJwx5tzV9/+M7G8qA3cHpPOYQOgM4U8bU4lSM24h9hFIbycxRTHtE+TkENLqRlEA== + dependencies: + magic-string "^0.25.2" + rollup-pluginutils "^2.6.0" + typescript "^3.4.3" + "@types/argparse@1.0.33": version "1.0.33" resolved "https://registry.yarnpkg.com/@types/argparse/-/argparse-1.0.33.tgz#2728669427cdd74a99e53c9f457ca2866a37c52d" @@ -1455,14 +1464,6 @@ rollup-plugin-node-resolve@^5.2.0: resolve "^1.11.1" rollup-pluginutils "^2.8.1" -rollup-plugin-replace@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/rollup-plugin-replace/-/rollup-plugin-replace-2.2.0.tgz#f41ae5372e11e7a217cde349c8b5d5fd115e70e3" - integrity sha512-/5bxtUPkDHyBJAKketb4NfaeZjL5yLZdeUihSfbF2PQMz+rSTEb8ARKoOl3UBT4m7/X+QOXJo3sLTcq+yMMYTA== - dependencies: - magic-string "^0.25.2" - rollup-pluginutils "^2.6.0" - rollup-plugin-typescript2@^0.24.3: version "0.24.3" resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.24.3.tgz#276fa33a9d584d500da62d3e5400307f4a46bdf2" @@ -1767,7 +1768,7 @@ type-check@~0.3.2: dependencies: prelude-ls "~1.1.2" -typescript@^3.6.4: +typescript@^3.4.3, typescript@^3.6.4: version "3.6.4" resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.4.tgz#b18752bb3792bc1a0281335f7f6ebf1bbfc5b91d" integrity sha512-unoCll1+l+YK4i4F8f22TaNVPRHcD9PA3yCuZ8g5e0qGqlVlJ/8FSateOLLSagn+Yg5+ZwuPkL8LFUc0Jcvksg== From 57cc8473f7b62f6a7b241f1cc1e28635af3bbb1b Mon Sep 17 00:00:00 2001 From: Neruthes 0x5200DF38 Date: Mon, 11 Nov 2019 03:54:15 +0000 Subject: [PATCH 22/80] Minor wording improvement --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 64444a2..53526d5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # @holoflows/kit · ![GitHub license](https://img.shields.io/badge/license-AGPL-blue.svg?style=flat-square) [![npm version](https://img.shields.io/npm/v/@holoflows/kit.svg?style=flat-square)](https://www.npmjs.com/package/@holoflows/kit) ![Ciecle CI](https://img.shields.io/circleci/project/github/DimensionDev/holoflows-kit.svg?style=flat-square&logo=circleci) -Toolkit for modern Webflows development. +Toolkit for developing Augmented Virtuality. ## Documentation From 1d9dbd0284d637c308774ed31898d7d20a8a173b Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2019 12:26:04 +0000 Subject: [PATCH 23/80] chore(deps-dev): bump @microsoft/api-extractor from 7.5.2 to 7.5.5 Bumps [@microsoft/api-extractor](https://github.com/microsoft/rushstack) from 7.5.2 to 7.5.5. - [Release notes](https://github.com/microsoft/rushstack/releases) - [Commits](https://github.com/microsoft/rushstack/compare/@microsoft/api-extractor-model_v7.5.2...@microsoft/api-extractor_v7.5.5) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 56 ++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 41 insertions(+), 15 deletions(-) diff --git a/yarn.lock b/yarn.lock index d3e3a02..e53fbd6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -30,20 +30,28 @@ "@microsoft/node-core-library" "3.16.0" "@microsoft/tsdoc" "0.12.14" +"@microsoft/api-extractor-model@7.5.4": + version "7.5.4" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.5.4.tgz#c5ad3823a59ee9c81b685e4f1a6f55e0e64218be" + integrity sha512-pzY1EVHw8dMCRBba8PDEV71vnsmvhOSgLUIXxB45Ts0Po69tz2H7YZQ4DsAetyv0aSLHG5QVXmGEn65A1DDvDQ== + dependencies: + "@microsoft/node-core-library" "3.17.0" + "@microsoft/tsdoc" "0.12.14" + "@microsoft/api-extractor@^7.5.0": - version "7.5.2" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.5.2.tgz#4da588e71c6342ec66b6b087a471aa773a232c81" - integrity sha512-IGMpxhiTaUsGGdrGqCwhwGbyJNMwrVe0wi3vYqFL0G93N+DO2uI89/JNGxaiGjgQ8nCem6u8hPd0NhOcGU6DcA== + version "7.5.5" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.5.5.tgz#9626088d243cefc285e6e88980377fce705d6e9e" + integrity sha512-gkwB5IxUAFKpvpzDcJ6quo7hiW5axLY2te0RRrGm4gHHVbegdddWk4PyVLa4qogjqaK5hTshWo0EIZ6wChd3dw== dependencies: - "@microsoft/api-extractor-model" "7.5.2" - "@microsoft/node-core-library" "3.16.0" + "@microsoft/api-extractor-model" "7.5.4" + "@microsoft/node-core-library" "3.17.0" "@microsoft/ts-command-line" "4.3.4" "@microsoft/tsdoc" "0.12.14" colors "~1.2.1" lodash "~4.17.15" resolve "1.8.1" source-map "~0.6.1" - typescript "~3.5.3" + typescript "~3.7.2" "@microsoft/node-core-library@3.16.0": version "3.16.0" @@ -56,6 +64,19 @@ jju "~1.4.0" z-schema "~3.18.3" +"@microsoft/node-core-library@3.17.0": + version "3.17.0" + resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.17.0.tgz#3576431711b65951b5059d564ac9dc0897f75743" + integrity sha512-i49LbZxPU35Vq50lV1oN331WPp+BmmhGs0Ee2PT/OAZR7qOm/UdQ3vpG70zhkLHymJNUyb0vUh0UU3ZHU6mgsg== + dependencies: + "@types/node" "8.10.54" + colors "~1.2.1" + fs-extra "~7.0.1" + jju "~1.4.0" + semver "~5.3.0" + timsort "~0.3.0" + z-schema "~3.18.3" + "@microsoft/ts-command-line@4.3.4": version "4.3.4" resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.4.tgz#a52214bd86f6d65c8975f46e6b12fad68545058a" @@ -1525,6 +1546,11 @@ semver@^6.0.0: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== +semver@~5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" + integrity sha1-myzl094C0XxgEq0yaqa00M9U+U8= + set-blocking@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" @@ -1701,6 +1727,11 @@ symbol-tree@^3.2.2: resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== +timsort@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4" + integrity sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q= + tough-cookie@^2.3.3: version "2.5.0" resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" @@ -1768,15 +1799,10 @@ type-check@~0.3.2: dependencies: prelude-ls "~1.1.2" -typescript@^3.4.3, typescript@^3.6.4: - version "3.6.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.4.tgz#b18752bb3792bc1a0281335f7f6ebf1bbfc5b91d" - integrity sha512-unoCll1+l+YK4i4F8f22TaNVPRHcD9PA3yCuZ8g5e0qGqlVlJ/8FSateOLLSagn+Yg5+ZwuPkL8LFUc0Jcvksg== - -typescript@~3.5.3: - version "3.5.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.5.3.tgz#c830f657f93f1ea846819e929092f5fe5983e977" - integrity sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g== +typescript@^3.4.3, typescript@^3.6.4, typescript@~3.7.2: + version "3.7.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.2.tgz#27e489b95fa5909445e9fef5ee48d81697ad18fb" + integrity sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ== universalify@^0.1.0: version "0.1.2" From 90a70bc6db06bfe5c6a5064329f34c5bc58d0f79 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2019 14:23:55 +0000 Subject: [PATCH 24/80] chore(deps-dev): bump @rollup/plugin-replace from 2.2.0 to 2.2.1 Bumps [@rollup/plugin-replace](https://github.com/rollup/plugins) from 2.2.0 to 2.2.1. - [Release notes](https://github.com/rollup/plugins/releases) - [Commits](https://github.com/rollup/plugins/compare/alias-v2.2.0...replace-v2.2.1) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/yarn.lock b/yarn.lock index e53fbd6..a46b11e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -92,13 +92,12 @@ integrity sha512-518yewjSga1jLdiLrcmpMFlaba5P+50b0TWNFUpC+SL9Yzf0kMi57qw+bMl+rQ08cGqH1vLx4eg9YFUbZXgZ0Q== "@rollup/plugin-replace@^2.2.0": - version "2.2.0" - resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-2.2.0.tgz#e3b11881fb1ab1be7570e1ccd175b8249e448c52" - integrity sha512-DnALjyAdfAyQ4i6tJdi4v6rJwx5tzV9/+M7G8qA3cHpPOYQOgM4U8bU4lSM24h9hFIbycxRTHtE+TkENLqRlEA== + version "2.2.1" + resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-2.2.1.tgz#94af20cb3d70cccdcec991d1f97dd373936ec544" + integrity sha512-dgq5ijT8fK18KTb1inenZ61ivTayV7pvbz2+ivT+VN20BOgJVM1fqoBETqGHKgFVm/J9BhR82mQyAtxfpPv1lQ== dependencies: magic-string "^0.25.2" rollup-pluginutils "^2.6.0" - typescript "^3.4.3" "@types/argparse@1.0.33": version "1.0.33" @@ -1799,7 +1798,7 @@ type-check@~0.3.2: dependencies: prelude-ls "~1.1.2" -typescript@^3.4.3, typescript@^3.6.4, typescript@~3.7.2: +typescript@^3.6.4, typescript@~3.7.2: version "3.7.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.2.tgz#27e489b95fa5909445e9fef5ee48d81697ad18fb" integrity sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ== From d20689f86ffe1d7859e3d5b4e14968805e5a3881 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2019 12:28:52 +0000 Subject: [PATCH 25/80] chore(deps-dev): bump source-map-support from 0.5.13 to 0.5.16 Bumps [source-map-support](https://github.com/evanw/node-source-map-support) from 0.5.13 to 0.5.16. - [Release notes](https://github.com/evanw/node-source-map-support/releases) - [Commits](https://github.com/evanw/node-source-map-support/compare/v0.5.13...v0.5.16) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index a46b11e..062a899 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1573,9 +1573,9 @@ shell-quote@^1.6.1: integrity sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg== source-map-support@^0.5.13, source-map-support@^0.5.6: - version "0.5.13" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.13.tgz#31b24a9c2e73c2de85066c0feb7d44767ed52932" - integrity sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w== + version "0.5.16" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.16.tgz#0ae069e7fe3ba7538c64c98515e35339eac5a042" + integrity sha512-efyLRJDr68D9hBBNIPWFjhpFzURh+KJykQwvMyW5UiZzYwoF6l4YMMDIJJEyFWxWCqfyxLzz6tSfUFR+kXXsVQ== dependencies: buffer-from "^1.0.0" source-map "^0.6.0" From d0100b0363e67cfff3a265c46197a1b3b50dff91 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2019 12:28:59 +0000 Subject: [PATCH 26/80] chore(deps-dev): bump @microsoft/api-documenter from 7.5.4 to 7.5.7 Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack) from 7.5.4 to 7.5.7. - [Release notes](https://github.com/microsoft/rushstack/releases) - [Commits](https://github.com/microsoft/rushstack/compare/@microsoft/api-documenter_v7.5.4...@microsoft/api-documenter_v7.5.7) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/yarn.lock b/yarn.lock index 062a899..dc023de 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10,12 +10,12 @@ regenerator-runtime "^0.13.2" "@microsoft/api-documenter@^7.5.0": - version "7.5.4" - resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.5.4.tgz#4aaec26c010eea71c6d8a17955c3307c2e63aae4" - integrity sha512-N/mDVpf1V4g6UTbFlrsF9LT09SFTb362gm+ZnPUA1OAGV62SqBBe8ZJO7LPFyLo1UOYGUpfK+YgS6dlGKItxkg== + version "7.5.7" + resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.5.7.tgz#dcc3fa0b20966c314e6d96e0c950b8f07466c04a" + integrity sha512-/uiElWIy3uiqA3f/GSE0yjTejIrmmmiHR9LA6yC6/pTt4sFm3aSPQ9tpyFTADnTSaCi21sxbCZmB1O6Nm/Lhpw== dependencies: - "@microsoft/api-extractor-model" "7.5.2" - "@microsoft/node-core-library" "3.16.0" + "@microsoft/api-extractor-model" "7.5.4" + "@microsoft/node-core-library" "3.17.0" "@microsoft/ts-command-line" "4.3.4" "@microsoft/tsdoc" "0.12.14" colors "~1.2.1" From 92e62b12fa7bc4a66dc8259e4b24e24ad10e6e9f Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2019 12:29:26 +0000 Subject: [PATCH 27/80] chore(deps-dev): bump rollup from 1.26.0 to 1.26.5 Bumps [rollup](https://github.com/rollup/rollup) from 1.26.0 to 1.26.5. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v1.26.0...v1.26.5) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index dc023de..83c53ff 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1510,9 +1510,9 @@ rollup-pluginutils@^2.6.0, rollup-pluginutils@^2.8.1: estree-walker "^0.6.1" rollup@^1.23.1: - version "1.26.0" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.26.0.tgz#cf40fd5e1edc4d7f3d4235a0a43f1c2be1cf294b" - integrity sha512-5HljNYn9icFvXX+Oe97qY5TWvnWhKqgGT0HGeWWqFPx7w7+Anzg7dfHMtUif7YYy6QxAgynDSwK6uxbgcrVUxw== + version "1.26.5" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.26.5.tgz#c492c8bb88b661e7952a864e40bdec209aa1aa03" + integrity sha512-c6Pv0yWzjYNpy2DIhLFUnyP6e1UTGownr4IfpJcPY/k186RJjpaGGPRwKQ62KCauctG6dgtHt88pw1EGrPRkuA== dependencies: "@types/estree" "*" "@types/node" "*" From 252de0a69d5fae330f397be9246f27dffffa7623 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2019 12:31:14 +0000 Subject: [PATCH 28/80] chore(deps-dev): bump jsdom from 15.2.0 to 15.2.1 Bumps [jsdom](https://github.com/jsdom/jsdom) from 15.2.0 to 15.2.1. - [Release notes](https://github.com/jsdom/jsdom/releases) - [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md) - [Commits](https://github.com/jsdom/jsdom/compare/15.2.0...15.2.1) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/yarn.lock b/yarn.lock index 83c53ff..9fd2017 100644 --- a/yarn.lock +++ b/yarn.lock @@ -894,9 +894,9 @@ jsdom-global@^3.0.2: integrity sha1-a9KZwTsMRiay2iwDk81DhdYGrLk= jsdom@^15.2.0: - version "15.2.0" - resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-15.2.0.tgz#4baead4f464e733533ed6ac607ce440918cf5cbb" - integrity sha512-+hRyEfjRPFwTYMmSQ3/f7U9nP8ZNZmbkmUek760ZpxnCPWJIhaaLRuUSvpJ36fZKCGENxLwxClzwpOpnXNfChQ== + version "15.2.1" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-15.2.1.tgz#d2feb1aef7183f86be521b8c6833ff5296d07ec5" + integrity sha512-fAl1W0/7T2G5vURSyxBzrJ1LSdQn6Tr5UX/xD4PXDx/PDgwygedfW6El/KIj3xJ7FU61TTYnc/l/B7P49Eqt6g== dependencies: abab "^2.0.0" acorn "^7.1.0" @@ -908,7 +908,7 @@ jsdom@^15.2.0: domexception "^1.0.1" escodegen "^1.11.1" html-encoding-sniffer "^1.0.2" - nwsapi "^2.1.4" + nwsapi "^2.2.0" parse5 "5.1.0" pn "^1.1.0" request "^2.88.0" @@ -1190,10 +1190,10 @@ npm-run-all@^4.1.5: shell-quote "^1.6.1" string.prototype.padend "^3.0.0" -nwsapi@^2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.1.4.tgz#e006a878db23636f8e8a67d33ca0e4edf61a842f" - integrity sha512-iGfd9Y6SFdTNldEy2L0GUhcarIutFmk+MPWIn9dmj8NMIup03G08uUF2KGbbmv/Ux4RT0VZJoP/sVbWA6d/VIw== +nwsapi@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.0.tgz#204879a9e3d068ff2a55139c2c772780681a38b7" + integrity sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ== oauth-sign@~0.9.0: version "0.9.0" From 3e18531082746284d6bd48ef168fea986d985fc2 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2019 12:30:09 +0000 Subject: [PATCH 29/80] chore(deps-dev): bump ts-node from 8.4.1 to 8.5.0 Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 8.4.1 to 8.5.0. - [Release notes](https://github.com/TypeStrong/ts-node/releases) - [Commits](https://github.com/TypeStrong/ts-node/compare/v8.4.1...v8.5.0) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 9fd2017..0ce717e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1764,9 +1764,9 @@ tr46@^1.0.1: punycode "^2.1.0" ts-node@^8.4.1: - version "8.4.1" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-8.4.1.tgz#270b0dba16e8723c9fa4f9b4775d3810fd994b4f" - integrity sha512-5LpRN+mTiCs7lI5EtbXmF/HfMeCjzt7DH9CZwtkr6SywStrNQC723wG+aOWFiLNn7zT3kD/RnFqi3ZUfr4l5Qw== + version "8.5.0" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-8.5.0.tgz#bc7d5a39133d222bf25b1693651e4d893785f884" + integrity sha512-fbG32iZEupNV2E2Fd2m2yt1TdAwR3GTCrJQBHDevIiEBNy1A8kqnyl1fv7jmRmmbtcapFab2glZXHJvfD1ed0Q== dependencies: arg "^4.1.0" diff "^4.0.1" From b24c0b89460af1540cbb093c5153ec8f27b1735d Mon Sep 17 00:00:00 2001 From: Mingye Wang Date: Mon, 11 Nov 2019 22:37:36 +0800 Subject: [PATCH 30/80] fix: apply @rollup/plugin-replace rename --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 4608498..210e064 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,7 +1,7 @@ import typescript from 'rollup-plugin-typescript2' import commonjs from 'rollup-plugin-commonjs' import nodeResolve from 'rollup-plugin-node-resolve' -import replace from 'rollup-plugin-replace' +import replace from '@rollup/plugin-replac' function parseMaybe(s) { return typeof s === 'string' ? JSON.parse(s) : {} From 0cf93a6425fa85e1d09cbfcc0a448216d77a4e31 Mon Sep 17 00:00:00 2001 From: Jack Works Date: Mon, 11 Nov 2019 22:40:09 +0800 Subject: [PATCH 31/80] fix: typo in import decl --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 210e064..7735c24 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,7 +1,7 @@ import typescript from 'rollup-plugin-typescript2' import commonjs from 'rollup-plugin-commonjs' import nodeResolve from 'rollup-plugin-node-resolve' -import replace from '@rollup/plugin-replac' +import replace from '@rollup/plugin-replace' function parseMaybe(s) { return typeof s === 'string' ? JSON.parse(s) : {} From 848c28a8e8ff5d0a6077bac2f6decdfabbfebe48 Mon Sep 17 00:00:00 2001 From: Mingye Wang Date: Mon, 11 Nov 2019 22:40:25 +0800 Subject: [PATCH 32/80] chore: replace circleci logo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 53526d5..385ae1a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# @holoflows/kit · ![GitHub license](https://img.shields.io/badge/license-AGPL-blue.svg?style=flat-square) [![npm version](https://img.shields.io/npm/v/@holoflows/kit.svg?style=flat-square)](https://www.npmjs.com/package/@holoflows/kit) ![Ciecle CI](https://img.shields.io/circleci/project/github/DimensionDev/holoflows-kit.svg?style=flat-square&logo=circleci) +# @holoflows/kit · ![GitHub license](https://img.shields.io/badge/license-AGPL-blue.svg?style=flat-square) [![npm version](https://img.shields.io/npm/v/@holoflows/kit.svg?style=flat-square)](https://www.npmjs.com/package/@holoflows/kit) [![Ciecle CI](https://img.shields.io/circleci/build/gh/DimensionDev/Holoflows-Kit.svg?logo=circleci&style=flat-square)](https://circleci.com/gh/DimensionDev/Holoflows-Kit) Toolkit for developing Augmented Virtuality. From f4f1f304908f6757a31b442691c0bf521d79e003 Mon Sep 17 00:00:00 2001 From: Jack Works Date: Tue, 12 Nov 2019 13:53:03 +0800 Subject: [PATCH 33/80] chore: to ts 3.7 and enable useDefineForClassFields --- package.json | 8 ++--- tsconfig.json | 3 +- yarn.lock | 85 ++++++++++++++++++++------------------------------- 3 files changed, 39 insertions(+), 57 deletions(-) diff --git a/package.json b/package.json index b4f23df..69a4944 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,8 @@ "test": "cross-env TS_NODE_COMPILER_OPTIONS='{ \"module\": \"commonjs\" }' mocha -r ts-node/register/transpile-only -r source-map-support/register -r jsdom-global/register --recursive src/**/*.spec.ts" }, "devDependencies": { - "@microsoft/api-documenter": "^7.5.0", - "@microsoft/api-extractor": "^7.5.0", + "@microsoft/api-documenter": "^7.5.8", + "@microsoft/api-extractor": "^7.5.6", "@rollup/plugin-replace": "^2.2.0", "@types/lodash-es": "^4.1.4", "@types/mocha": "^5.2.7", @@ -47,10 +47,10 @@ "rollup": "^1.23.1", "rollup-plugin-commonjs": "^10.1.0", "rollup-plugin-node-resolve": "^5.2.0", - "rollup-plugin-typescript2": "^0.24.3", + "rollup-plugin-typescript2": "^0.25.2", "source-map-support": "^0.5.13", "ts-node": "^8.4.1", - "typescript": "^3.6.4", + "typescript": "^3.7.2", "web-ext-types": "^3.2.1" }, "peerDependencies": { diff --git a/tsconfig.json b/tsconfig.json index 7dc6723..acc070d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,7 +22,8 @@ "outDir": "./es/", "incremental": true, "typeRoots": ["node_modules/@types", "node_modules/web-ext-types", "src/types"], - "jsx": "react" + "jsx": "react", + "useDefineForClassFields": true }, "include": ["./src/**/*"] } diff --git a/yarn.lock b/yarn.lock index 0ce717e..b90afd7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9,43 +9,35 @@ dependencies: regenerator-runtime "^0.13.2" -"@microsoft/api-documenter@^7.5.0": - version "7.5.7" - resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.5.7.tgz#dcc3fa0b20966c314e6d96e0c950b8f07466c04a" - integrity sha512-/uiElWIy3uiqA3f/GSE0yjTejIrmmmiHR9LA6yC6/pTt4sFm3aSPQ9tpyFTADnTSaCi21sxbCZmB1O6Nm/Lhpw== - dependencies: - "@microsoft/api-extractor-model" "7.5.4" - "@microsoft/node-core-library" "3.17.0" - "@microsoft/ts-command-line" "4.3.4" +"@microsoft/api-documenter@^7.5.8": + version "7.5.8" + resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.5.8.tgz#33717bc46e41497f39c34d16fd8e51fd29551924" + integrity sha512-DiT35wkO46FN/aXPWxcPcfMvQYlDEtTmqXXe274obMMKpZai8QElpticatji4lwkVzv1/nFPaaZWEICe/DXDgw== + dependencies: + "@microsoft/api-extractor-model" "7.5.5" + "@microsoft/node-core-library" "3.17.1" + "@microsoft/ts-command-line" "4.3.5" "@microsoft/tsdoc" "0.12.14" colors "~1.2.1" js-yaml "~3.13.1" resolve "1.8.1" -"@microsoft/api-extractor-model@7.5.2": - version "7.5.2" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.5.2.tgz#39a3c015ca01a3435b5f161b8fce07117e6039be" - integrity sha512-wDXQ6IvrVg7tp3iqA+7f7yrSzjUPQ2kVNKsrxD5AqbGeohsJYePbmWvz6V8yxxO7ZuM9W7V5zLY6pYh4epq8Dg== +"@microsoft/api-extractor-model@7.5.5": + version "7.5.5" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.5.5.tgz#562f420f3a32d65a09984534f0af205e9e3d606f" + integrity sha512-OovDAQWxGChGDBH10Pf4Y7eJlVhbkCDv37RrKyuMyXurB8MEvZtHABjgknYsZD9MrfRUUvs5X80MIDcM2kSiYw== dependencies: - "@microsoft/node-core-library" "3.16.0" + "@microsoft/node-core-library" "3.17.1" "@microsoft/tsdoc" "0.12.14" -"@microsoft/api-extractor-model@7.5.4": - version "7.5.4" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.5.4.tgz#c5ad3823a59ee9c81b685e4f1a6f55e0e64218be" - integrity sha512-pzY1EVHw8dMCRBba8PDEV71vnsmvhOSgLUIXxB45Ts0Po69tz2H7YZQ4DsAetyv0aSLHG5QVXmGEn65A1DDvDQ== +"@microsoft/api-extractor@^7.5.6": + version "7.5.6" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.5.6.tgz#3327c60724bb94df8ca159e21010caf5ae28c24d" + integrity sha512-SH2BOGef9dWERGIrd10sG2Rtoh5xnmh9xbwsXtQgGvjShwJWOlOEdxpRoARIsVxE6tyuQYtW60E/1YwwuigDQw== dependencies: - "@microsoft/node-core-library" "3.17.0" - "@microsoft/tsdoc" "0.12.14" - -"@microsoft/api-extractor@^7.5.0": - version "7.5.5" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.5.5.tgz#9626088d243cefc285e6e88980377fce705d6e9e" - integrity sha512-gkwB5IxUAFKpvpzDcJ6quo7hiW5axLY2te0RRrGm4gHHVbegdddWk4PyVLa4qogjqaK5hTshWo0EIZ6wChd3dw== - dependencies: - "@microsoft/api-extractor-model" "7.5.4" - "@microsoft/node-core-library" "3.17.0" - "@microsoft/ts-command-line" "4.3.4" + "@microsoft/api-extractor-model" "7.5.5" + "@microsoft/node-core-library" "3.17.1" + "@microsoft/ts-command-line" "4.3.5" "@microsoft/tsdoc" "0.12.14" colors "~1.2.1" lodash "~4.17.15" @@ -53,21 +45,10 @@ source-map "~0.6.1" typescript "~3.7.2" -"@microsoft/node-core-library@3.16.0": - version "3.16.0" - resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.16.0.tgz#cdd3a27b1513cb470d1098ba32d50ca22a1fb75c" - integrity sha512-zjgOAmOhWgE5eX8ofmRagcomeIhs96GizRm7m9UfAuzhEmWtQSOE33/WpZzoyw41S/bjevHi7YbkY+R70mdjFg== - dependencies: - "@types/node" "8.10.54" - colors "~1.2.1" - fs-extra "~7.0.1" - jju "~1.4.0" - z-schema "~3.18.3" - -"@microsoft/node-core-library@3.17.0": - version "3.17.0" - resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.17.0.tgz#3576431711b65951b5059d564ac9dc0897f75743" - integrity sha512-i49LbZxPU35Vq50lV1oN331WPp+BmmhGs0Ee2PT/OAZR7qOm/UdQ3vpG70zhkLHymJNUyb0vUh0UU3ZHU6mgsg== +"@microsoft/node-core-library@3.17.1": + version "3.17.1" + resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.17.1.tgz#c82087fefdda3a16c1eb5a70a55c892c6c79612b" + integrity sha512-SwsOJGefU8Ue5tRePEPq+ukuc7bURhTikuARsTGK8i/m2eVnKLZvUxFWdPxV5ntFqxYQcHr8UEh8EXSu3CiXVQ== dependencies: "@types/node" "8.10.54" colors "~1.2.1" @@ -77,10 +58,10 @@ timsort "~0.3.0" z-schema "~3.18.3" -"@microsoft/ts-command-line@4.3.4": - version "4.3.4" - resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.4.tgz#a52214bd86f6d65c8975f46e6b12fad68545058a" - integrity sha512-PNqh7tACiOaM3znLX2EjECbabk0PfChEn6lMzrC62+xtV2Xr0N0dj1PtvDX125cxxF4FNcWoZqCODzJI/cB0GA== +"@microsoft/ts-command-line@4.3.5": + version "4.3.5" + resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.5.tgz#78026d20244f39978d3397849ac8c40c0c2d4079" + integrity sha512-CN3j86apNOmllUmeJ0AyRfTYA2BP2xlnfgmnyp1HWLqcJmR/zLe/fk/+gohGnNt7o5/qHta3681LQhO2Yy3GFw== dependencies: "@types/argparse" "1.0.33" argparse "~1.0.9" @@ -1484,10 +1465,10 @@ rollup-plugin-node-resolve@^5.2.0: resolve "^1.11.1" rollup-pluginutils "^2.8.1" -rollup-plugin-typescript2@^0.24.3: - version "0.24.3" - resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.24.3.tgz#276fa33a9d584d500da62d3e5400307f4a46bdf2" - integrity sha512-D7yovQlhnRoz7pG/RF0ni+koxgzEShwfAGuOq6OVqKzcATHOvmUt2ePeYVdc9N0adcW1PcTzklUEM0oNWE/POw== +rollup-plugin-typescript2@^0.25.2: + version "0.25.2" + resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.25.2.tgz#1a165df08560902da45b355413464caca1765d3a" + integrity sha512-+tpZj/ZIf2lwjyjX6xEW1S5Y38/21TB3p6poLodISIia8owMMfIKuFFnWcESE4FPBHkR8XPKqjY0PH9IUJJK+Q== dependencies: find-cache-dir "^3.0.0" fs-extra "8.1.0" @@ -1798,7 +1779,7 @@ type-check@~0.3.2: dependencies: prelude-ls "~1.1.2" -typescript@^3.6.4, typescript@~3.7.2: +typescript@^3.7.2, typescript@~3.7.2: version "3.7.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.2.tgz#27e489b95fa5909445e9fef5ee48d81697ad18fb" integrity sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ== From 5fa0a36cfc00e94ea2761c37a15e7f9c5253dc5b Mon Sep 17 00:00:00 2001 From: Jack Works Date: Wed, 27 Nov 2019 13:33:52 +0800 Subject: [PATCH 34/80] chore: remove "starter" of Watcher.then --- src/DOM/Watcher.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/DOM/Watcher.ts b/src/DOM/Watcher.ts index d3ba34f..f7d9a96 100644 --- a/src/DOM/Watcher.ts +++ b/src/DOM/Watcher.ts @@ -124,7 +124,6 @@ export abstract class Watcher s.startWatch(...)) * ``` */ // The PromiseLike interface @@ -141,9 +138,7 @@ export abstract class Watcher) => TResult1 | PromiseLike) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null, options: { minimalResultsRequired?: number; timeout?: number } = {}, - starter: (this: this, self: this) => void = watcher => watcher.startWatch(), ): Promise { - this._warning_forget_watch_.ignored = true const { minimalResultsRequired, timeout: timeoutTime } = { ...({ minimalResultsRequired: 1, @@ -174,7 +169,6 @@ export abstract class Watcher) => { const nodes = v.values.current if (this.singleMode && nodes.length >= 1) { @@ -804,7 +798,7 @@ function applyUseForeachCallback(callback: useForeachReturns) { } //#endregion //#region Typescript generic helper -type ResultOf = SingleMode extends true ? (Result) : (Result)[] +type ResultOf = SingleMode extends true ? Result : Result[] //#endregion //#region Warnings interface WarningOptions { From 9fb3b3420685f8e156a8bf88051ff8415733557a Mon Sep 17 00:00:00 2001 From: Jack Works Date: Wed, 27 Nov 2019 13:34:10 +0800 Subject: [PATCH 35/80] revert: "chore: to ts 3.7 and enable useDefineForClassFields" This reverts commit f4f1f304908f6757a31b442691c0bf521d79e003. --- package.json | 8 ++--- tsconfig.json | 3 +- yarn.lock | 85 +++++++++++++++++++++++++++++++-------------------- 3 files changed, 57 insertions(+), 39 deletions(-) diff --git a/package.json b/package.json index 69a4944..b4f23df 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,8 @@ "test": "cross-env TS_NODE_COMPILER_OPTIONS='{ \"module\": \"commonjs\" }' mocha -r ts-node/register/transpile-only -r source-map-support/register -r jsdom-global/register --recursive src/**/*.spec.ts" }, "devDependencies": { - "@microsoft/api-documenter": "^7.5.8", - "@microsoft/api-extractor": "^7.5.6", + "@microsoft/api-documenter": "^7.5.0", + "@microsoft/api-extractor": "^7.5.0", "@rollup/plugin-replace": "^2.2.0", "@types/lodash-es": "^4.1.4", "@types/mocha": "^5.2.7", @@ -47,10 +47,10 @@ "rollup": "^1.23.1", "rollup-plugin-commonjs": "^10.1.0", "rollup-plugin-node-resolve": "^5.2.0", - "rollup-plugin-typescript2": "^0.25.2", + "rollup-plugin-typescript2": "^0.24.3", "source-map-support": "^0.5.13", "ts-node": "^8.4.1", - "typescript": "^3.7.2", + "typescript": "^3.6.4", "web-ext-types": "^3.2.1" }, "peerDependencies": { diff --git a/tsconfig.json b/tsconfig.json index acc070d..7dc6723 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,8 +22,7 @@ "outDir": "./es/", "incremental": true, "typeRoots": ["node_modules/@types", "node_modules/web-ext-types", "src/types"], - "jsx": "react", - "useDefineForClassFields": true + "jsx": "react" }, "include": ["./src/**/*"] } diff --git a/yarn.lock b/yarn.lock index b90afd7..0ce717e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9,35 +9,43 @@ dependencies: regenerator-runtime "^0.13.2" -"@microsoft/api-documenter@^7.5.8": - version "7.5.8" - resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.5.8.tgz#33717bc46e41497f39c34d16fd8e51fd29551924" - integrity sha512-DiT35wkO46FN/aXPWxcPcfMvQYlDEtTmqXXe274obMMKpZai8QElpticatji4lwkVzv1/nFPaaZWEICe/DXDgw== - dependencies: - "@microsoft/api-extractor-model" "7.5.5" - "@microsoft/node-core-library" "3.17.1" - "@microsoft/ts-command-line" "4.3.5" +"@microsoft/api-documenter@^7.5.0": + version "7.5.7" + resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.5.7.tgz#dcc3fa0b20966c314e6d96e0c950b8f07466c04a" + integrity sha512-/uiElWIy3uiqA3f/GSE0yjTejIrmmmiHR9LA6yC6/pTt4sFm3aSPQ9tpyFTADnTSaCi21sxbCZmB1O6Nm/Lhpw== + dependencies: + "@microsoft/api-extractor-model" "7.5.4" + "@microsoft/node-core-library" "3.17.0" + "@microsoft/ts-command-line" "4.3.4" "@microsoft/tsdoc" "0.12.14" colors "~1.2.1" js-yaml "~3.13.1" resolve "1.8.1" -"@microsoft/api-extractor-model@7.5.5": - version "7.5.5" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.5.5.tgz#562f420f3a32d65a09984534f0af205e9e3d606f" - integrity sha512-OovDAQWxGChGDBH10Pf4Y7eJlVhbkCDv37RrKyuMyXurB8MEvZtHABjgknYsZD9MrfRUUvs5X80MIDcM2kSiYw== +"@microsoft/api-extractor-model@7.5.2": + version "7.5.2" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.5.2.tgz#39a3c015ca01a3435b5f161b8fce07117e6039be" + integrity sha512-wDXQ6IvrVg7tp3iqA+7f7yrSzjUPQ2kVNKsrxD5AqbGeohsJYePbmWvz6V8yxxO7ZuM9W7V5zLY6pYh4epq8Dg== dependencies: - "@microsoft/node-core-library" "3.17.1" + "@microsoft/node-core-library" "3.16.0" "@microsoft/tsdoc" "0.12.14" -"@microsoft/api-extractor@^7.5.6": - version "7.5.6" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.5.6.tgz#3327c60724bb94df8ca159e21010caf5ae28c24d" - integrity sha512-SH2BOGef9dWERGIrd10sG2Rtoh5xnmh9xbwsXtQgGvjShwJWOlOEdxpRoARIsVxE6tyuQYtW60E/1YwwuigDQw== +"@microsoft/api-extractor-model@7.5.4": + version "7.5.4" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.5.4.tgz#c5ad3823a59ee9c81b685e4f1a6f55e0e64218be" + integrity sha512-pzY1EVHw8dMCRBba8PDEV71vnsmvhOSgLUIXxB45Ts0Po69tz2H7YZQ4DsAetyv0aSLHG5QVXmGEn65A1DDvDQ== dependencies: - "@microsoft/api-extractor-model" "7.5.5" - "@microsoft/node-core-library" "3.17.1" - "@microsoft/ts-command-line" "4.3.5" + "@microsoft/node-core-library" "3.17.0" + "@microsoft/tsdoc" "0.12.14" + +"@microsoft/api-extractor@^7.5.0": + version "7.5.5" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.5.5.tgz#9626088d243cefc285e6e88980377fce705d6e9e" + integrity sha512-gkwB5IxUAFKpvpzDcJ6quo7hiW5axLY2te0RRrGm4gHHVbegdddWk4PyVLa4qogjqaK5hTshWo0EIZ6wChd3dw== + dependencies: + "@microsoft/api-extractor-model" "7.5.4" + "@microsoft/node-core-library" "3.17.0" + "@microsoft/ts-command-line" "4.3.4" "@microsoft/tsdoc" "0.12.14" colors "~1.2.1" lodash "~4.17.15" @@ -45,10 +53,21 @@ source-map "~0.6.1" typescript "~3.7.2" -"@microsoft/node-core-library@3.17.1": - version "3.17.1" - resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.17.1.tgz#c82087fefdda3a16c1eb5a70a55c892c6c79612b" - integrity sha512-SwsOJGefU8Ue5tRePEPq+ukuc7bURhTikuARsTGK8i/m2eVnKLZvUxFWdPxV5ntFqxYQcHr8UEh8EXSu3CiXVQ== +"@microsoft/node-core-library@3.16.0": + version "3.16.0" + resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.16.0.tgz#cdd3a27b1513cb470d1098ba32d50ca22a1fb75c" + integrity sha512-zjgOAmOhWgE5eX8ofmRagcomeIhs96GizRm7m9UfAuzhEmWtQSOE33/WpZzoyw41S/bjevHi7YbkY+R70mdjFg== + dependencies: + "@types/node" "8.10.54" + colors "~1.2.1" + fs-extra "~7.0.1" + jju "~1.4.0" + z-schema "~3.18.3" + +"@microsoft/node-core-library@3.17.0": + version "3.17.0" + resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.17.0.tgz#3576431711b65951b5059d564ac9dc0897f75743" + integrity sha512-i49LbZxPU35Vq50lV1oN331WPp+BmmhGs0Ee2PT/OAZR7qOm/UdQ3vpG70zhkLHymJNUyb0vUh0UU3ZHU6mgsg== dependencies: "@types/node" "8.10.54" colors "~1.2.1" @@ -58,10 +77,10 @@ timsort "~0.3.0" z-schema "~3.18.3" -"@microsoft/ts-command-line@4.3.5": - version "4.3.5" - resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.5.tgz#78026d20244f39978d3397849ac8c40c0c2d4079" - integrity sha512-CN3j86apNOmllUmeJ0AyRfTYA2BP2xlnfgmnyp1HWLqcJmR/zLe/fk/+gohGnNt7o5/qHta3681LQhO2Yy3GFw== +"@microsoft/ts-command-line@4.3.4": + version "4.3.4" + resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.4.tgz#a52214bd86f6d65c8975f46e6b12fad68545058a" + integrity sha512-PNqh7tACiOaM3znLX2EjECbabk0PfChEn6lMzrC62+xtV2Xr0N0dj1PtvDX125cxxF4FNcWoZqCODzJI/cB0GA== dependencies: "@types/argparse" "1.0.33" argparse "~1.0.9" @@ -1465,10 +1484,10 @@ rollup-plugin-node-resolve@^5.2.0: resolve "^1.11.1" rollup-pluginutils "^2.8.1" -rollup-plugin-typescript2@^0.25.2: - version "0.25.2" - resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.25.2.tgz#1a165df08560902da45b355413464caca1765d3a" - integrity sha512-+tpZj/ZIf2lwjyjX6xEW1S5Y38/21TB3p6poLodISIia8owMMfIKuFFnWcESE4FPBHkR8XPKqjY0PH9IUJJK+Q== +rollup-plugin-typescript2@^0.24.3: + version "0.24.3" + resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.24.3.tgz#276fa33a9d584d500da62d3e5400307f4a46bdf2" + integrity sha512-D7yovQlhnRoz7pG/RF0ni+koxgzEShwfAGuOq6OVqKzcATHOvmUt2ePeYVdc9N0adcW1PcTzklUEM0oNWE/POw== dependencies: find-cache-dir "^3.0.0" fs-extra "8.1.0" @@ -1779,7 +1798,7 @@ type-check@~0.3.2: dependencies: prelude-ls "~1.1.2" -typescript@^3.7.2, typescript@~3.7.2: +typescript@^3.6.4, typescript@~3.7.2: version "3.7.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.2.tgz#27e489b95fa5909445e9fef5ee48d81697ad18fb" integrity sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ== From 137898f79f2989e5d80e003c6e9ec6ac10ac116b Mon Sep 17 00:00:00 2001 From: Jack Works Date: Wed, 27 Nov 2019 13:35:30 +0800 Subject: [PATCH 36/80] doc: regenerate doc --- api-documents/kit.valueref.md | 1 - api-documents/kit.valueref.value.md | 13 ------------- api-documents/kit.watcher.firstdomproxy.md | 13 ------------- api-documents/kit.watcher.firstvirtualnode.md | 18 ------------------ api-documents/kit.watcher.md | 5 +---- api-documents/kit.watcher.singlemode.md | 13 ------------- api-documents/kit.watcher.then.md | 5 +---- doc/holoflows-kit.api.report.md | 12 ++++++------ 8 files changed, 8 insertions(+), 72 deletions(-) delete mode 100644 api-documents/kit.valueref.value.md delete mode 100644 api-documents/kit.watcher.firstdomproxy.md delete mode 100644 api-documents/kit.watcher.firstvirtualnode.md delete mode 100644 api-documents/kit.watcher.singlemode.md diff --git a/api-documents/kit.valueref.md b/api-documents/kit.valueref.md index f269168..17c209e 100644 --- a/api-documents/kit.valueref.md +++ b/api-documents/kit.valueref.md @@ -37,7 +37,6 @@ ref.value = 42 // useRef will receive the new value | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [isEqual](./kit.valueref.isequal.md) | | (a: T, b: T) => boolean | | -| [value](./kit.valueref.value.md) | | T | Set current value | ## Methods diff --git a/api-documents/kit.valueref.value.md b/api-documents/kit.valueref.value.md deleted file mode 100644 index 829e097..0000000 --- a/api-documents/kit.valueref.value.md +++ /dev/null @@ -1,13 +0,0 @@ - - -[Home](./index.md) > [@holoflows/kit](./kit.md) > [ValueRef](./kit.valueref.md) > [value](./kit.valueref.value.md) - -## ValueRef.value property - -Set current value - -Signature: - -```typescript -value: T; -``` diff --git a/api-documents/kit.watcher.firstdomproxy.md b/api-documents/kit.watcher.firstdomproxy.md deleted file mode 100644 index 0f06784..0000000 --- a/api-documents/kit.watcher.firstdomproxy.md +++ /dev/null @@ -1,13 +0,0 @@ - - -[Home](./index.md) > [@holoflows/kit](./kit.md) > [Watcher](./kit.watcher.md) > [firstDOMProxy](./kit.watcher.firstdomproxy.md) - -## Watcher.firstDOMProxy property - -This DOMProxy always point to the first node in the LiveSelector - -Signature: - -```typescript -readonly firstDOMProxy: T extends Node ? DOMProxy : never; -``` diff --git a/api-documents/kit.watcher.firstvirtualnode.md b/api-documents/kit.watcher.firstvirtualnode.md deleted file mode 100644 index 8f1b73a..0000000 --- a/api-documents/kit.watcher.firstvirtualnode.md +++ /dev/null @@ -1,18 +0,0 @@ - - -[Home](./index.md) > [@holoflows/kit](./kit.md) > [Watcher](./kit.watcher.md) > [firstVirtualNode](./kit.watcher.firstvirtualnode.md) - -## Watcher.firstVirtualNode property - -> Warning: This API is now obsolete. -> -> use firstDOMProxy instead. will remove in 0.7.0 -> - -This DOMProxy always point to the first node in the LiveSelector - -Signature: - -```typescript -readonly firstVirtualNode: T extends Node ? DOMProxy : never; -``` diff --git a/api-documents/kit.watcher.md b/api-documents/kit.watcher.md index deaccf9..16be43e 100644 --- a/api-documents/kit.watcher.md +++ b/api-documents/kit.watcher.md @@ -27,8 +27,6 @@ export declare abstract class WatcherPartial<DOMProxyOptions<Before, After>> | The dom proxy option used in DOMProxy() | | [eventEmitter](./kit.watcher.eventemitter.md) | | mitt.Emitter | Event emitter | | [findNodeFromListByKey](./kit.watcher.findnodefromlistbykey.md) | | (list: readonly T[], keys: readonly unknown[]) => (key: unknown) => T | null | Find node from the given list by key | -| [firstDOMProxy](./kit.watcher.firstdomproxy.md) | | T extends Node ? DOMProxy<T, Before, After> : never | This DOMProxy always point to the first node in the LiveSelector | -| [firstVirtualNode](./kit.watcher.firstvirtualnode.md) | | T extends Node ? DOMProxy<T, Before, After> : never | This DOMProxy always point to the first node in the LiveSelector | | [isWatching](./kit.watcher.iswatching.md) | | boolean | Is the watcher running | | [keyComparer](./kit.watcher.keycomparer.md) | | (a: unknown, b: unknown) => boolean | Compare between key and key, in case of you don't want the default behavior | | [lastCallbackMap](./kit.watcher.lastcallbackmap.md) | | Map<unknown, useForeachReturns<T>> | Saved callback map of last watch | @@ -39,7 +37,6 @@ export declare abstract class Watcher(node: T, index: number, arr: readonly T[]) => unknown | Map Node -> Key, in case of you don't want the default behavior | | [requestIdleCallback](./kit.watcher.requestidlecallback.md) | | typeof requestIdleCallback | window.requestIdleCallback, or polyfill. | | [scheduleWatcherCheck](./kit.watcher.schedulewatchercheck.md) | | () => void | Schedule a watcher check | -| [singleMode](./kit.watcher.singlemode.md) | | boolean | Is the single mode is on. | | [singleModeCallback](./kit.watcher.singlemodecallback.md) | | useForeachReturns<T> | Callback for single mode | | [singleModeHasLastValue](./kit.watcher.singlemodehaslastvalue.md) | | boolean | Does it has a last iteration value in single mode? | | [singleModeLastValue](./kit.watcher.singlemodelastvalue.md) | | T | Last iteration value for single mode | @@ -76,6 +73,6 @@ export declare abstract class Watcher - -[Home](./index.md) > [@holoflows/kit](./kit.md) > [Watcher](./kit.watcher.md) > [singleMode](./kit.watcher.singlemode.md) - -## Watcher.singleMode property - -Is the single mode is on. - -Signature: - -```typescript -protected readonly singleMode: boolean; -``` diff --git a/api-documents/kit.watcher.then.md b/api-documents/kit.watcher.then.md index a700223..99f7efb 100644 --- a/api-documents/kit.watcher.then.md +++ b/api-documents/kit.watcher.then.md @@ -12,7 +12,7 @@ Start the watcher, once it emitted data, stop watching. then, TResult2 = never>(onfulfilled?: ((value: ResultOf) => TResult1 | PromiseLike) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null, options?: { minimalResultsRequired?: number; timeout?: number; - }, starter?: (this: this, self: this) => void): Promise; + }): Promise; ``` ## Parameters @@ -22,7 +22,6 @@ then, TResult2 = never>(onfulfilled?: ((value | onfulfilled | ((value: ResultOf<SingleMode, T>) => TResult1 | PromiseLike<TResult1>) | null | | | onrejected | ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | | | options | {
minimalResultsRequired?: number;
timeout?: number;
} | Options for watcher | -| starter | (this: this, self: this) => void | How to start the watcher | Returns: @@ -38,8 +37,6 @@ This is an implementation of `PromiseLike` ```ts const value = await watcher const value2 = await watcher(undefined, undefined, { minimalResultsRequired: 5 }) -// If your watcher need parameters for startWatch -const value3 = await watcher(undefined, undefined, {}, s => s.startWatch(...)) ``` diff --git a/doc/holoflows-kit.api.report.md b/doc/holoflows-kit.api.report.md index ef91759..9fe34d7 100644 --- a/doc/holoflows-kit.api.report.md +++ b/doc/holoflows-kit.api.report.md @@ -195,11 +195,12 @@ export { Serialization } export class ValueRef { constructor(_value: T, isEqual?: (a: T, b: T) => boolean); addListener(fn: (newVal: T, oldVal: T) => void): () => void; + get value(): T; + set value(newVal: T); // (undocumented) isEqual: (a: T, b: T) => boolean; removeAllListener(): void; removeListener(fn: (newVal: T, oldVal: T) => void): void; - value: T; } // Warning: (ae-forgotten-export) The symbol "ResultOf" needs to be exported by the entry point index.d.ts @@ -240,12 +241,10 @@ export abstract class Watcher (key: unknown) => T | null; - readonly firstDOMProxy: T extends Node ? DOMProxy : never; protected _firstDOMProxy: DOMProxy; - // @deprecated - readonly firstVirtualNode: T extends Node ? DOMProxy : never; getDOMProxyByKey(key: unknown): DOMProxy | null; // @deprecated getVirtualNodeByKey(key: unknown): DOMProxy | null; @@ -263,6 +262,8 @@ export abstract class Watcher>): this; // (undocumented) removeListener(event: 'onChange', fn: EventCallback>): this; + get firstDOMProxy(): T extends Node ? DOMProxy : never; + get firstVirtualNode(): T extends Node ? DOMProxy : never; // (undocumented) removeListener(event: 'onRemove', fn: EventCallback>): this; // (undocumented) @@ -272,7 +273,6 @@ export abstract class Watcher void; setComparer(keyComparer?: (a: unknown, b: unknown) => boolean, valueComparer?: (a: T, b: T) => boolean): this; setDOMProxyOption(option: Partial>): this; - protected readonly singleMode: boolean; protected singleModeCallback?: useForeachReturns; protected singleModeHasLastValue: boolean; protected singleModeLastValue?: T; @@ -281,7 +281,7 @@ export abstract class Watcher, TResult2 = never>(onfulfilled?: ((value: ResultOf) => TResult1 | PromiseLike) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null, options?: { minimalResultsRequired?: number; timeout?: number; - }, starter?: (this: this, self: this) => void): Promise; + }): Promise; // Warning: (ae-forgotten-export) The symbol "useForeachReturns" needs to be exported by the entry point index.d.ts useForeach(forEach: (element: T, key: unknown, metadata: T extends Node ? DOMProxy : unknown) => useForeachReturns): this; protected useForeachFn?: Parameters['useForeach']>[0]; From fccc30581a859fec34adb059013e5669a4677630 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 27 Nov 2019 05:37:14 +0000 Subject: [PATCH 37/80] chore(deps-dev): bump ts-node from 8.5.0 to 8.5.2 Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 8.5.0 to 8.5.2. - [Release notes](https://github.com/TypeStrong/ts-node/releases) - [Commits](https://github.com/TypeStrong/ts-node/compare/v8.5.0...v8.5.2) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/yarn.lock b/yarn.lock index 0ce717e..c844d72 100644 --- a/yarn.lock +++ b/yarn.lock @@ -22,14 +22,6 @@ js-yaml "~3.13.1" resolve "1.8.1" -"@microsoft/api-extractor-model@7.5.2": - version "7.5.2" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.5.2.tgz#39a3c015ca01a3435b5f161b8fce07117e6039be" - integrity sha512-wDXQ6IvrVg7tp3iqA+7f7yrSzjUPQ2kVNKsrxD5AqbGeohsJYePbmWvz6V8yxxO7ZuM9W7V5zLY6pYh4epq8Dg== - dependencies: - "@microsoft/node-core-library" "3.16.0" - "@microsoft/tsdoc" "0.12.14" - "@microsoft/api-extractor-model@7.5.4": version "7.5.4" resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.5.4.tgz#c5ad3823a59ee9c81b685e4f1a6f55e0e64218be" @@ -53,17 +45,6 @@ source-map "~0.6.1" typescript "~3.7.2" -"@microsoft/node-core-library@3.16.0": - version "3.16.0" - resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.16.0.tgz#cdd3a27b1513cb470d1098ba32d50ca22a1fb75c" - integrity sha512-zjgOAmOhWgE5eX8ofmRagcomeIhs96GizRm7m9UfAuzhEmWtQSOE33/WpZzoyw41S/bjevHi7YbkY+R70mdjFg== - dependencies: - "@types/node" "8.10.54" - colors "~1.2.1" - fs-extra "~7.0.1" - jju "~1.4.0" - z-schema "~3.18.3" - "@microsoft/node-core-library@3.17.0": version "3.17.0" resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.17.0.tgz#3576431711b65951b5059d564ac9dc0897f75743" @@ -1764,9 +1745,9 @@ tr46@^1.0.1: punycode "^2.1.0" ts-node@^8.4.1: - version "8.5.0" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-8.5.0.tgz#bc7d5a39133d222bf25b1693651e4d893785f884" - integrity sha512-fbG32iZEupNV2E2Fd2m2yt1TdAwR3GTCrJQBHDevIiEBNy1A8kqnyl1fv7jmRmmbtcapFab2glZXHJvfD1ed0Q== + version "8.5.2" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-8.5.2.tgz#434f6c893bafe501a30b32ac94ee36809ba2adce" + integrity sha512-W1DK/a6BGoV/D4x/SXXm6TSQx6q3blECUzd5TN+j56YEMX3yPVMpHsICLedUw3DvGF3aTQ8hfdR9AKMaHjIi+A== dependencies: arg "^4.1.0" diff "^4.0.1" From ec36478b7173d70d76681e3e2cddaa1c68eb332c Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 27 Nov 2019 05:41:14 +0000 Subject: [PATCH 38/80] chore(deps-dev): bump @microsoft/api-extractor from 7.5.6 to 7.6.2 Bumps [@microsoft/api-extractor](https://github.com/microsoft/rushstack) from 7.5.6 to 7.6.2. - [Release notes](https://github.com/microsoft/rushstack/releases) - [Commits](https://github.com/microsoft/rushstack/commits) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 42 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/yarn.lock b/yarn.lock index c844d72..959e860 100644 --- a/yarn.lock +++ b/yarn.lock @@ -30,14 +30,22 @@ "@microsoft/node-core-library" "3.17.0" "@microsoft/tsdoc" "0.12.14" +"@microsoft/api-extractor-model@7.6.0": + version "7.6.0" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.6.0.tgz#0cac9ae4fc94f168166e9383f18b39b6aa0826f8" + integrity sha512-7gtxCxUMLDv3k1NE7MCaUaQeAwH5dEt/vjnq22cOUiCfiYOxdrvolab+WIXSNKV6rhe+AnIovR9tkxtxw5OiYA== + dependencies: + "@microsoft/node-core-library" "3.18.0" + "@microsoft/tsdoc" "0.12.14" + "@microsoft/api-extractor@^7.5.0": - version "7.5.5" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.5.5.tgz#9626088d243cefc285e6e88980377fce705d6e9e" - integrity sha512-gkwB5IxUAFKpvpzDcJ6quo7hiW5axLY2te0RRrGm4gHHVbegdddWk4PyVLa4qogjqaK5hTshWo0EIZ6wChd3dw== + version "7.6.2" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.6.2.tgz#e633b4d4bccf76ca624e1d2118d48f5a7defb93c" + integrity sha512-4nK2uAWwC1nfzpEbyCwPfe/39aHkoWIhsodj8yrWTxMpH0eI7Ik/SdHtn3bDKVHIK67EnaR5//fnevpj9ACByw== dependencies: - "@microsoft/api-extractor-model" "7.5.4" - "@microsoft/node-core-library" "3.17.0" - "@microsoft/ts-command-line" "4.3.4" + "@microsoft/api-extractor-model" "7.6.0" + "@microsoft/node-core-library" "3.18.0" + "@microsoft/ts-command-line" "4.3.5" "@microsoft/tsdoc" "0.12.14" colors "~1.2.1" lodash "~4.17.15" @@ -58,6 +66,19 @@ timsort "~0.3.0" z-schema "~3.18.3" +"@microsoft/node-core-library@3.18.0": + version "3.18.0" + resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.18.0.tgz#9a9123354b3e067bb8a975ba791959ffee1322ed" + integrity sha512-VzzSHtcwgHVW1xbHqpngfn+OS1trAZ1Tw3XXBlMsEKe7Wz7FF2gLr0hZa6x9Pemk5pkd4tu4+GTSOJjCKGjrgg== + dependencies: + "@types/node" "8.10.54" + colors "~1.2.1" + fs-extra "~7.0.1" + jju "~1.4.0" + semver "~5.3.0" + timsort "~0.3.0" + z-schema "~3.18.3" + "@microsoft/ts-command-line@4.3.4": version "4.3.4" resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.4.tgz#a52214bd86f6d65c8975f46e6b12fad68545058a" @@ -67,6 +88,15 @@ argparse "~1.0.9" colors "~1.2.1" +"@microsoft/ts-command-line@4.3.5": + version "4.3.5" + resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.5.tgz#78026d20244f39978d3397849ac8c40c0c2d4079" + integrity sha512-CN3j86apNOmllUmeJ0AyRfTYA2BP2xlnfgmnyp1HWLqcJmR/zLe/fk/+gohGnNt7o5/qHta3681LQhO2Yy3GFw== + dependencies: + "@types/argparse" "1.0.33" + argparse "~1.0.9" + colors "~1.2.1" + "@microsoft/tsdoc@0.12.14": version "0.12.14" resolved "https://registry.yarnpkg.com/@microsoft/tsdoc/-/tsdoc-0.12.14.tgz#0e0810a0a174e50e22dfe8edb30599840712f22d" From a9a6aee773aa0eab8ac7f77f34482e84e2812a1f Mon Sep 17 00:00:00 2001 From: Jack Works Date: Fri, 29 Nov 2019 12:54:43 +0800 Subject: [PATCH 39/80] chore: allow default starter for then --- src/DOM/Watcher.ts | 4 ++++ src/DOM/Watchers/MutationObserverWatcher.ts | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/DOM/Watcher.ts b/src/DOM/Watcher.ts index f7d9a96..9eefa3c 100644 --- a/src/DOM/Watcher.ts +++ b/src/DOM/Watcher.ts @@ -120,6 +120,9 @@ export abstract class Watcher TResult2 | PromiseLike) | null, options: { minimalResultsRequired?: number; timeout?: number } = {}, ): Promise { + this.defaultStarterForThen() const { minimalResultsRequired, timeout: timeoutTime } = { ...({ minimalResultsRequired: 1, diff --git a/src/DOM/Watchers/MutationObserverWatcher.ts b/src/DOM/Watchers/MutationObserverWatcher.ts index 5f6669e..2f1b9f3 100644 --- a/src/DOM/Watchers/MutationObserverWatcher.ts +++ b/src/DOM/Watchers/MutationObserverWatcher.ts @@ -62,6 +62,9 @@ export class MutationObserverWatcher< } else watch(this.consistentWatchRoot) return this } + protected defaultStarterForThen() { + if (!this.isWatching) this.startWatch({ subtree: true, childList: true, characterData: true }) + } /** * {@inheritdoc Watcher.stopWatch} */ From 699890ba56dae46a503f6aec4f90627d689efddc Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 27 Nov 2019 05:41:08 +0000 Subject: [PATCH 40/80] chore(deps-dev): bump @microsoft/api-documenter from 7.5.8 to 7.7.0 Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack) from 7.5.8 to 7.7.0. - [Release notes](https://github.com/microsoft/rushstack/releases) - [Commits](https://github.com/microsoft/rushstack/commits) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/yarn.lock b/yarn.lock index 959e860..7e14b8d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10,13 +10,13 @@ regenerator-runtime "^0.13.2" "@microsoft/api-documenter@^7.5.0": - version "7.5.7" - resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.5.7.tgz#dcc3fa0b20966c314e6d96e0c950b8f07466c04a" - integrity sha512-/uiElWIy3uiqA3f/GSE0yjTejIrmmmiHR9LA6yC6/pTt4sFm3aSPQ9tpyFTADnTSaCi21sxbCZmB1O6Nm/Lhpw== + version "7.7.0" + resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.7.0.tgz#79ec968de74bf4cbbbc89fba07b2b2b0b48164eb" + integrity sha512-iSrwXku3/65Qo+DvfGpS0sBbi0g0gHxjucWLjBIEXpfK3qucV2al/mcj0RR6kTHRf9LOJrnRmvOoXgjzj85OAQ== dependencies: - "@microsoft/api-extractor-model" "7.5.4" - "@microsoft/node-core-library" "3.17.0" - "@microsoft/ts-command-line" "4.3.4" + "@microsoft/api-extractor-model" "7.6.0" + "@microsoft/node-core-library" "3.18.0" + "@microsoft/ts-command-line" "4.3.5" "@microsoft/tsdoc" "0.12.14" colors "~1.2.1" js-yaml "~3.13.1" From 484f0bdb9025d8e6b774003ad39b2ff8c1a8d71c Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 27 Nov 2019 05:51:39 +0000 Subject: [PATCH 41/80] chore(deps-dev): bump rollup from 1.26.5 to 1.27.5 Bumps [rollup](https://github.com/rollup/rollup) from 1.26.5 to 1.27.5. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v1.26.5...v1.27.5) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 7e14b8d..3bb232c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1521,9 +1521,9 @@ rollup-pluginutils@^2.6.0, rollup-pluginutils@^2.8.1: estree-walker "^0.6.1" rollup@^1.23.1: - version "1.26.5" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.26.5.tgz#c492c8bb88b661e7952a864e40bdec209aa1aa03" - integrity sha512-c6Pv0yWzjYNpy2DIhLFUnyP6e1UTGownr4IfpJcPY/k186RJjpaGGPRwKQ62KCauctG6dgtHt88pw1EGrPRkuA== + version "1.27.5" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.27.5.tgz#d100fb0ffd8353575cb2057152547b9abfddfe59" + integrity sha512-8rfVdzuTg2kt8ObD9LNJpEwUN7B6lsl3sHc5fddtgICpLjpYeSf4m2+RftBzcCaBTMi1iYX3Ez8zFT4Gj2nJjg== dependencies: "@types/estree" "*" "@types/node" "*" From 930254d9a9f3c8a7d5bb45c5fc81c0aee9fb3fa9 Mon Sep 17 00:00:00 2001 From: Jack Works Date: Fri, 29 Nov 2019 12:57:32 +0800 Subject: [PATCH 42/80] docs: regenerate doc --- ...onobserverwatcher.defaultstarterforthen.md | 15 ++++++++++ api-documents/kit.mutationobserverwatcher.md | 1 + api-documents/kit.valueref._constructor_.md | 4 +-- .../kit.watcher.defaultstarterforthen.md | 15 ++++++++++ api-documents/kit.watcher.md | 1 + doc/holoflows-kit.api.report.md | 16 ++++++---- src/util/ValueRef.ts | 4 +-- yarn.lock | 30 ------------------- 8 files changed, 46 insertions(+), 40 deletions(-) create mode 100644 api-documents/kit.mutationobserverwatcher.defaultstarterforthen.md create mode 100644 api-documents/kit.watcher.defaultstarterforthen.md diff --git a/api-documents/kit.mutationobserverwatcher.defaultstarterforthen.md b/api-documents/kit.mutationobserverwatcher.defaultstarterforthen.md new file mode 100644 index 0000000..26b024a --- /dev/null +++ b/api-documents/kit.mutationobserverwatcher.defaultstarterforthen.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@holoflows/kit](./kit.md) > [MutationObserverWatcher](./kit.mutationobserverwatcher.md) > [defaultStarterForThen](./kit.mutationobserverwatcher.defaultstarterforthen.md) + +## MutationObserverWatcher.defaultStarterForThen() method + +Signature: + +```typescript +protected defaultStarterForThen(): void; +``` +Returns: + +`void` + diff --git a/api-documents/kit.mutationobserverwatcher.md b/api-documents/kit.mutationobserverwatcher.md index 6164426..5667064 100644 --- a/api-documents/kit.mutationobserverwatcher.md +++ b/api-documents/kit.mutationobserverwatcher.md @@ -41,6 +41,7 @@ new MutationObserverWatcher(ls) | Method | Modifiers | Description | | --- | --- | --- | +| [defaultStarterForThen()](./kit.mutationobserverwatcher.defaultstarterforthen.md) | | | | [startWatch(options)](./kit.mutationobserverwatcher.startwatch.md) | | Start an MutationObserverWatcher. | | [stopWatch()](./kit.mutationobserverwatcher.stopwatch.md) | | Stop the watcher | diff --git a/api-documents/kit.valueref._constructor_.md b/api-documents/kit.valueref._constructor_.md index a490a95..b367d82 100644 --- a/api-documents/kit.valueref._constructor_.md +++ b/api-documents/kit.valueref._constructor_.md @@ -16,6 +16,6 @@ constructor(_value: T, isEqual?: (a: T, b: T) => boolean); | Parameter | Type | Description | | --- | --- | --- | -| \_value | T | | -| isEqual | (a: T, b: T) => boolean | | +| \_value | T | The internal value | +| isEqual | (a: T, b: T) => boolean | The comparer function | diff --git a/api-documents/kit.watcher.defaultstarterforthen.md b/api-documents/kit.watcher.defaultstarterforthen.md new file mode 100644 index 0000000..2e16cf4 --- /dev/null +++ b/api-documents/kit.watcher.defaultstarterforthen.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@holoflows/kit](./kit.md) > [Watcher](./kit.watcher.md) > [defaultStarterForThen](./kit.watcher.defaultstarterforthen.md) + +## Watcher.defaultStarterForThen() method + +Signature: + +```typescript +protected defaultStarterForThen(): void; +``` +Returns: + +`void` + diff --git a/api-documents/kit.watcher.md b/api-documents/kit.watcher.md index 16be43e..822b0e9 100644 --- a/api-documents/kit.watcher.md +++ b/api-documents/kit.watcher.md @@ -53,6 +53,7 @@ export declare abstract class Watchernode to keyIf the key is changed, the same node will call through forEachRemove then forEach | +| [defaultStarterForThen()](./kit.watcher.defaultstarterforthen.md) | | | | [dismissSingleModeWarning()](./kit.watcher.dismisssinglemodewarning.md) | | Dismiss the warning that let you enable single mode but the warning is false positive. | | [emit(event, data)](./kit.watcher.emit.md) | | | | [emit(event, data)](./kit.watcher.emit_1.md) | | | diff --git a/doc/holoflows-kit.api.report.md b/doc/holoflows-kit.api.report.md index 9fe34d7..9dd97fc 100644 --- a/doc/holoflows-kit.api.report.md +++ b/doc/holoflows-kit.api.report.md @@ -172,9 +172,11 @@ export class MessageCenter { // @public export class MutationObserverWatcher extends Watcher { constructor( - liveSelector: LiveSelector, - consistentWatchRoot?: Node, + liveSelector: LiveSelector, + consistentWatchRoot?: Node, stopWatchOnDisconnected?: boolean); + // (undocumented) + protected defaultStarterForThen(): void; enableSingleMode: () => MutationObserverWatcher; protected liveSelector: LiveSelector; startWatch(options: MutationObserverInit): this; @@ -204,26 +206,28 @@ export class ValueRef { } // Warning: (ae-forgotten-export) The symbol "ResultOf" needs to be exported by the entry point index.d.ts -// +// // @public export abstract class Watcher implements PromiseLike> { constructor(liveSelector: LiveSelector); // Warning: (ae-forgotten-export) The symbol "EventCallback" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "OnIterationEvent" needs to be exported by the entry point index.d.ts - // + // // (undocumented) addListener(event: 'onIteration', fn: EventCallback>): this; // Warning: (ae-forgotten-export) The symbol "OnChangeEvent" needs to be exported by the entry point index.d.ts - // + // // (undocumented) addListener(event: 'onChange', fn: EventCallback>): this; // Warning: (ae-forgotten-export) The symbol "OnAddOrRemoveEvent" needs to be exported by the entry point index.d.ts - // + // // (undocumented) addListener(event: 'onRemove', fn: EventCallback>): this; // (undocumented) addListener(event: 'onAdd', fn: EventCallback>): this; assignKeys(keyAssigner: (node: T, index: number, arr: readonly T[]) => Q): this; + // (undocumented) + protected defaultStarterForThen(): void; dismissSingleModeWarning(): this; protected domProxyOption: Partial>; // (undocumented) diff --git a/src/util/ValueRef.ts b/src/util/ValueRef.ts index e0dc56a..7e496a9 100644 --- a/src/util/ValueRef.ts +++ b/src/util/ValueRef.ts @@ -38,8 +38,8 @@ export class ValueRef { private watcher = new Set<(newVal: T, oldVal: T) => void>() /** * - * @param _value The internal value - * @param isEqual The comparer function + * @param _value - The internal value + * @param isEqual - The comparer function */ constructor(private _value: T, public isEqual: (a: T, b: T) => boolean = (a, b) => a === b) {} /** diff --git a/yarn.lock b/yarn.lock index 3bb232c..f2c9979 100644 --- a/yarn.lock +++ b/yarn.lock @@ -22,14 +22,6 @@ js-yaml "~3.13.1" resolve "1.8.1" -"@microsoft/api-extractor-model@7.5.4": - version "7.5.4" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.5.4.tgz#c5ad3823a59ee9c81b685e4f1a6f55e0e64218be" - integrity sha512-pzY1EVHw8dMCRBba8PDEV71vnsmvhOSgLUIXxB45Ts0Po69tz2H7YZQ4DsAetyv0aSLHG5QVXmGEn65A1DDvDQ== - dependencies: - "@microsoft/node-core-library" "3.17.0" - "@microsoft/tsdoc" "0.12.14" - "@microsoft/api-extractor-model@7.6.0": version "7.6.0" resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.6.0.tgz#0cac9ae4fc94f168166e9383f18b39b6aa0826f8" @@ -53,19 +45,6 @@ source-map "~0.6.1" typescript "~3.7.2" -"@microsoft/node-core-library@3.17.0": - version "3.17.0" - resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.17.0.tgz#3576431711b65951b5059d564ac9dc0897f75743" - integrity sha512-i49LbZxPU35Vq50lV1oN331WPp+BmmhGs0Ee2PT/OAZR7qOm/UdQ3vpG70zhkLHymJNUyb0vUh0UU3ZHU6mgsg== - dependencies: - "@types/node" "8.10.54" - colors "~1.2.1" - fs-extra "~7.0.1" - jju "~1.4.0" - semver "~5.3.0" - timsort "~0.3.0" - z-schema "~3.18.3" - "@microsoft/node-core-library@3.18.0": version "3.18.0" resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.18.0.tgz#9a9123354b3e067bb8a975ba791959ffee1322ed" @@ -79,15 +58,6 @@ timsort "~0.3.0" z-schema "~3.18.3" -"@microsoft/ts-command-line@4.3.4": - version "4.3.4" - resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.4.tgz#a52214bd86f6d65c8975f46e6b12fad68545058a" - integrity sha512-PNqh7tACiOaM3znLX2EjECbabk0PfChEn6lMzrC62+xtV2Xr0N0dj1PtvDX125cxxF4FNcWoZqCODzJI/cB0GA== - dependencies: - "@types/argparse" "1.0.33" - argparse "~1.0.9" - colors "~1.2.1" - "@microsoft/ts-command-line@4.3.5": version "4.3.5" resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.5.tgz#78026d20244f39978d3397849ac8c40c0c2d4079" From f92f308df64575677109dcd695e5dd991cf320a4 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2019 11:20:17 +0000 Subject: [PATCH 43/80] chore(deps-dev): bump rollup from 1.27.5 to 1.27.8 Bumps [rollup](https://github.com/rollup/rollup) from 1.27.5 to 1.27.8. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v1.27.5...v1.27.8) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index f2c9979..0ed498a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1491,9 +1491,9 @@ rollup-pluginutils@^2.6.0, rollup-pluginutils@^2.8.1: estree-walker "^0.6.1" rollup@^1.23.1: - version "1.27.5" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.27.5.tgz#d100fb0ffd8353575cb2057152547b9abfddfe59" - integrity sha512-8rfVdzuTg2kt8ObD9LNJpEwUN7B6lsl3sHc5fddtgICpLjpYeSf4m2+RftBzcCaBTMi1iYX3Ez8zFT4Gj2nJjg== + version "1.27.8" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.27.8.tgz#94288a957af9f4c2380b73a17494d87705997d0f" + integrity sha512-EVoEV5rAWl+5clnGznt1KY8PeVkzVQh/R0d2s3gHEkN7gfoyC4JmvIVuCtPbYE8NM5Ep/g+nAmvKXBjzaqTsHA== dependencies: "@types/estree" "*" "@types/node" "*" From 2bdb4a96bbee9c236daed8b7ba61d8b384eafbdc Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2019 11:21:10 +0000 Subject: [PATCH 44/80] chore(deps-dev): bump ts-node from 8.5.2 to 8.5.4 Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 8.5.2 to 8.5.4. - [Release notes](https://github.com/TypeStrong/ts-node/releases) - [Commits](https://github.com/TypeStrong/ts-node/compare/v8.5.2...v8.5.4) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 0ed498a..efbb540 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1745,9 +1745,9 @@ tr46@^1.0.1: punycode "^2.1.0" ts-node@^8.4.1: - version "8.5.2" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-8.5.2.tgz#434f6c893bafe501a30b32ac94ee36809ba2adce" - integrity sha512-W1DK/a6BGoV/D4x/SXXm6TSQx6q3blECUzd5TN+j56YEMX3yPVMpHsICLedUw3DvGF3aTQ8hfdR9AKMaHjIi+A== + version "8.5.4" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-8.5.4.tgz#a152add11fa19c221d0b48962c210cf467262ab2" + integrity sha512-izbVCRV68EasEPQ8MSIGBNK9dc/4sYJJKYA+IarMQct1RtEot6Xp0bXuClsbUSnKpg50ho+aOAx8en5c+y4OFw== dependencies: arg "^4.1.0" diff "^4.0.1" From 3c15110bb1c4e800533fd3c4e3e0f670097baa9c Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2019 11:20:39 +0000 Subject: [PATCH 45/80] chore(deps-dev): bump rollup-plugin-typescript2 from 0.24.3 to 0.25.2 Bumps [rollup-plugin-typescript2](https://github.com/ezolenko/rollup-plugin-typescript2) from 0.24.3 to 0.25.2. - [Release notes](https://github.com/ezolenko/rollup-plugin-typescript2/releases) - [Commits](https://github.com/ezolenko/rollup-plugin-typescript2/compare/0.24.3...0.25.2) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index b4f23df..152399b 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "rollup": "^1.23.1", "rollup-plugin-commonjs": "^10.1.0", "rollup-plugin-node-resolve": "^5.2.0", - "rollup-plugin-typescript2": "^0.24.3", + "rollup-plugin-typescript2": "^0.25.2", "source-map-support": "^0.5.13", "ts-node": "^8.4.1", "typescript": "^3.6.4", diff --git a/yarn.lock b/yarn.lock index efbb540..dced5e9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1465,10 +1465,10 @@ rollup-plugin-node-resolve@^5.2.0: resolve "^1.11.1" rollup-pluginutils "^2.8.1" -rollup-plugin-typescript2@^0.24.3: - version "0.24.3" - resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.24.3.tgz#276fa33a9d584d500da62d3e5400307f4a46bdf2" - integrity sha512-D7yovQlhnRoz7pG/RF0ni+koxgzEShwfAGuOq6OVqKzcATHOvmUt2ePeYVdc9N0adcW1PcTzklUEM0oNWE/POw== +rollup-plugin-typescript2@^0.25.2: + version "0.25.2" + resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.25.2.tgz#1a165df08560902da45b355413464caca1765d3a" + integrity sha512-+tpZj/ZIf2lwjyjX6xEW1S5Y38/21TB3p6poLodISIia8owMMfIKuFFnWcESE4FPBHkR8XPKqjY0PH9IUJJK+Q== dependencies: find-cache-dir "^3.0.0" fs-extra "8.1.0" From cd1dc03dc279148b46723bc85db0064ad7eaccb8 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2019 11:21:46 +0000 Subject: [PATCH 46/80] chore(deps-dev): bump rollup-plugin-typescript2 from 0.25.2 to 0.25.3 Bumps [rollup-plugin-typescript2](https://github.com/ezolenko/rollup-plugin-typescript2) from 0.25.2 to 0.25.3. - [Release notes](https://github.com/ezolenko/rollup-plugin-typescript2/releases) - [Commits](https://github.com/ezolenko/rollup-plugin-typescript2/compare/0.25.2...0.25.3) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index dced5e9..f958f6e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1466,9 +1466,9 @@ rollup-plugin-node-resolve@^5.2.0: rollup-pluginutils "^2.8.1" rollup-plugin-typescript2@^0.25.2: - version "0.25.2" - resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.25.2.tgz#1a165df08560902da45b355413464caca1765d3a" - integrity sha512-+tpZj/ZIf2lwjyjX6xEW1S5Y38/21TB3p6poLodISIia8owMMfIKuFFnWcESE4FPBHkR8XPKqjY0PH9IUJJK+Q== + version "0.25.3" + resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.25.3.tgz#a5fb2f0f85488789334ce540abe6c7011cbdf40f" + integrity sha512-ADkSaidKBovJmf5VBnZBZe+WzaZwofuvYdzGAKTN/J4hN7QJCFYAq7IrH9caxlru6T5qhX41PNFS1S4HqhsGQg== dependencies: find-cache-dir "^3.0.0" fs-extra "8.1.0" From 473c9f79a4a560ab37229bed825bcc92cc86c725 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2019 11:23:26 +0000 Subject: [PATCH 47/80] chore(deps-dev): bump @microsoft/api-extractor from 7.6.2 to 7.7.0 Bumps [@microsoft/api-extractor](https://github.com/microsoft/rushstack) from 7.6.2 to 7.7.0. - [Release notes](https://github.com/microsoft/rushstack/releases) - [Commits](https://github.com/microsoft/rushstack/commits/@microsoft/api-extractor_v7.7.0) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/yarn.lock b/yarn.lock index f958f6e..2b3aa45 100644 --- a/yarn.lock +++ b/yarn.lock @@ -30,12 +30,20 @@ "@microsoft/node-core-library" "3.18.0" "@microsoft/tsdoc" "0.12.14" +"@microsoft/api-extractor-model@7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.7.0.tgz#a5e86a638fa3fea283aeebc4785d8150652f30c6" + integrity sha512-9yrSr9LpdNnx7X8bXVb/YbcQopizsr43McAG7Xno5CMNFzbSkmIr8FJL0L+WGfrSWSTms9Bngfz7d1ScP6zbWQ== + dependencies: + "@microsoft/node-core-library" "3.18.0" + "@microsoft/tsdoc" "0.12.14" + "@microsoft/api-extractor@^7.5.0": - version "7.6.2" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.6.2.tgz#e633b4d4bccf76ca624e1d2118d48f5a7defb93c" - integrity sha512-4nK2uAWwC1nfzpEbyCwPfe/39aHkoWIhsodj8yrWTxMpH0eI7Ik/SdHtn3bDKVHIK67EnaR5//fnevpj9ACByw== + version "7.7.0" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.7.0.tgz#1550a5b88ca927d57e9c9698356a2f9375c5984c" + integrity sha512-1ngy95VA1s7GTE+bkS7QoYTg/TZs54CdJ46uAhl6HlyDJut4p/aH46W70g2XQs9VniIymW1Qe6fqNmcQUx5CVg== dependencies: - "@microsoft/api-extractor-model" "7.6.0" + "@microsoft/api-extractor-model" "7.7.0" "@microsoft/node-core-library" "3.18.0" "@microsoft/ts-command-line" "4.3.5" "@microsoft/tsdoc" "0.12.14" From 9b5a9755a3b8e2b623c22475e45d383e1152eae9 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2019 11:23:53 +0000 Subject: [PATCH 48/80] chore(deps-dev): bump @microsoft/api-documenter from 7.7.0 to 7.7.2 Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack) from 7.7.0 to 7.7.2. - [Release notes](https://github.com/microsoft/rushstack/releases) - [Commits](https://github.com/microsoft/rushstack/compare/@microsoft/api-extractor_v7.7.0...@microsoft/api-documenter_v7.7.2) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yarn.lock b/yarn.lock index 2b3aa45..eacbd04 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10,11 +10,11 @@ regenerator-runtime "^0.13.2" "@microsoft/api-documenter@^7.5.0": - version "7.7.0" - resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.7.0.tgz#79ec968de74bf4cbbbc89fba07b2b2b0b48164eb" - integrity sha512-iSrwXku3/65Qo+DvfGpS0sBbi0g0gHxjucWLjBIEXpfK3qucV2al/mcj0RR6kTHRf9LOJrnRmvOoXgjzj85OAQ== + version "7.7.2" + resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.7.2.tgz#b6897f052ad447d6bb74f806287e8846c64691da" + integrity sha512-4mWE5G3grYd4PX5D6awiKa3B3GOXumkyGspgeTwlOBxrmj0FuVFRNPVZxGU0NqYnaw/bW4cg4ftUnSDzycrW+A== dependencies: - "@microsoft/api-extractor-model" "7.6.0" + "@microsoft/api-extractor-model" "7.7.0" "@microsoft/node-core-library" "3.18.0" "@microsoft/ts-command-line" "4.3.5" "@microsoft/tsdoc" "0.12.14" From 6457ea38dc8c04c2096ac32bdea1487739045f27 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2019 11:21:59 +0000 Subject: [PATCH 49/80] chore(deps-dev): bump @rollup/plugin-replace from 2.2.1 to 2.3.0 Bumps [@rollup/plugin-replace](https://github.com/rollup/plugins) from 2.2.1 to 2.3.0. - [Release notes](https://github.com/rollup/plugins/releases) - [Commits](https://github.com/rollup/plugins/compare/replace-v2.2.1...replace-v2.3.0) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index eacbd04..23f8bd7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -81,9 +81,9 @@ integrity sha512-518yewjSga1jLdiLrcmpMFlaba5P+50b0TWNFUpC+SL9Yzf0kMi57qw+bMl+rQ08cGqH1vLx4eg9YFUbZXgZ0Q== "@rollup/plugin-replace@^2.2.0": - version "2.2.1" - resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-2.2.1.tgz#94af20cb3d70cccdcec991d1f97dd373936ec544" - integrity sha512-dgq5ijT8fK18KTb1inenZ61ivTayV7pvbz2+ivT+VN20BOgJVM1fqoBETqGHKgFVm/J9BhR82mQyAtxfpPv1lQ== + version "2.3.0" + resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-2.3.0.tgz#86d88746383e40dd81cffb5216449cc51a734eb9" + integrity sha512-rzWAMqXAHC1w3eKpK6LxRqiF4f3qVFaa1sGii6Bp3rluKcwHNOpPt+hWRCmAH6SDEPtbPiLFf0pfNQyHs6Btlg== dependencies: magic-string "^0.25.2" rollup-pluginutils "^2.6.0" From ae7bf3f05f7bf4ad27656626994134b9087788b0 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2019 11:22:40 +0000 Subject: [PATCH 50/80] chore(deps-dev): bump rollup from 1.27.8 to 1.27.14 Bumps [rollup](https://github.com/rollup/rollup) from 1.27.8 to 1.27.14. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v1.27.8...v1.27.14) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 23f8bd7..19e1c25 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1499,9 +1499,9 @@ rollup-pluginutils@^2.6.0, rollup-pluginutils@^2.8.1: estree-walker "^0.6.1" rollup@^1.23.1: - version "1.27.8" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.27.8.tgz#94288a957af9f4c2380b73a17494d87705997d0f" - integrity sha512-EVoEV5rAWl+5clnGznt1KY8PeVkzVQh/R0d2s3gHEkN7gfoyC4JmvIVuCtPbYE8NM5Ep/g+nAmvKXBjzaqTsHA== + version "1.27.14" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.27.14.tgz#940718d5eec1a6887e399aa0089944bae5c4f377" + integrity sha512-DuDjEyn8Y79ALYXMt+nH/EI58L5pEw5HU9K38xXdRnxQhvzUTI/nxAawhkAHUQeudANQ//8iyrhVRHJBuR6DSQ== dependencies: "@types/estree" "*" "@types/node" "*" From c207f63332564c30410c2bcf9287cbe58e5a0dc1 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2019 11:23:32 +0000 Subject: [PATCH 51/80] chore(deps-dev): bump typescript from 3.7.2 to 3.7.4 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.7.2 to 3.7.4. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/commits) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 19e1c25..427427a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1788,9 +1788,9 @@ type-check@~0.3.2: prelude-ls "~1.1.2" typescript@^3.6.4, typescript@~3.7.2: - version "3.7.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.2.tgz#27e489b95fa5909445e9fef5ee48d81697ad18fb" - integrity sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ== + version "3.7.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.4.tgz#1743a5ec5fef6a1fa9f3e4708e33c81c73876c19" + integrity sha512-A25xv5XCtarLwXpcDNZzCGvW2D1S3/bACratYBx2sax8PefsFhlYmkQicKHvpYflFS8if4zne5zT5kpJ7pzuvw== universalify@^0.1.0: version "0.1.2" From efa690cee0ac21a7f281194c1a8e3e7b570115ca Mon Sep 17 00:00:00 2001 From: Jack Works Date: Tue, 31 Dec 2019 12:25:34 +0800 Subject: [PATCH 52/80] chore: remove 0.7.0 deprecates code --- src/DOM/Proxy.ts | 24 +-------- src/DOM/Watcher.ts | 59 +-------------------- src/DOM/Watchers/EventWatcher.ts | 4 -- src/DOM/Watchers/IntervalWatcher.ts | 4 -- src/DOM/Watchers/MutationObserverWatcher.ts | 4 -- src/Extension/AutomatedTabTask.ts | 8 +-- src/Extension/MessageCenter.ts | 2 +- src/util/AsyncCall.ts | 33 ------------ src/util/index.ts | 1 - 9 files changed, 8 insertions(+), 131 deletions(-) delete mode 100644 src/util/AsyncCall.ts diff --git a/src/DOM/Proxy.ts b/src/DOM/Proxy.ts index 7808182..751fb78 100644 --- a/src/DOM/Proxy.ts +++ b/src/DOM/Proxy.ts @@ -1,28 +1,6 @@ import { DOMProxyDevtoolsEnhancer } from '../Debuggers/DOMProxyDevtoolsEnhancer' import { installCustomObjectFormatter } from 'jsx-jsonml-devtools-renderer' -/** - * {@inheritdoc (DOMProxy:interface)} - * @deprecated use DOMProxy instead, will removed in 0.7.0 - */ -export interface DomProxy< - ProxiedElement extends Node = HTMLElement, - Before extends Element = HTMLSpanElement, - After extends Element = HTMLSpanElement -> extends DOMProxy {} -/** - * {@inheritdoc (DOMProxy:function)} - * @deprecated use DOMProxy instead, will removed in 0.7.0 - */ -export function DomProxy(...args: Parameters): ReturnType { - return DOMProxy(...args) -} -/** - * {@inheritdoc DOMProxyOptions} - * @deprecated use DOMProxyOptions instead, will removed in 0.7.0 - */ -export interface DomProxyOptions - extends DOMProxyOptions {} /** * Options for DOMProxy */ @@ -80,7 +58,7 @@ export function DOMProxy< let virtualAfter: After | null = null let virtualAfterShadow: ShadowRoot | null = null /** All changes applied on the `proxy` */ - let changes: (ActionTypes[keyof ActionTypes])[] = [] + let changes: ActionTypes[keyof ActionTypes][] = [] /** Read Traps */ const readonlyTraps: ProxyHandler = { ownKeys: () => { diff --git a/src/DOM/Watcher.ts b/src/DOM/Watcher.ts index 9eefa3c..7b8cebf 100644 --- a/src/DOM/Watcher.ts +++ b/src/DOM/Watcher.ts @@ -174,7 +174,7 @@ export abstract class Watcher) => { - const nodes = v.values.current + const nodes = Array.from(v.current.values()) if (this.singleMode && nodes.length >= 1) { return done(true, nodes[0]) } @@ -369,35 +369,6 @@ export abstract class Watcher - * extends Watcher { - * public enableSingleMode: MyWatcher = this._enableSingleMode as any - * } - * ``` - */ - public abstract enableSingleMode(): Watcher - /** - * @privateRemarks - * Every subclass should call this. - */ - protected _enableSingleMode() { - console.warn( - 'You should call this method on LiveSelector instead of a Watcher. Watcher.enableSingleMode is deprecated.', - ) - this._warning_single_mode.ignored = true - this.liveSelector.enableSingleMode() - return this - } /** * Is the single mode is on. */ @@ -546,14 +517,6 @@ export abstract class Watcher : never } - /** - * {@inheritdoc Watcher.firstDOMProxy} - * @deprecated use firstDOMProxy instead. will remove in 0.7.0 - */ - public get firstVirtualNode() { - console.warn('firstVirtualNode is deprecated, use firstDOMProxy instead') - return this.firstDOMProxy - } //#endregion //#region Watcher settings /** @@ -641,14 +604,6 @@ export abstract class Watcher this.keyComparer(_, key))) || null } - /** - * {@inheritdoc Watcher.getDOMProxyByKey} - * @deprecated use getDOMProxyByKey instead. will removed in 0.7.0 - */ - public getVirtualNodeByKey(key: unknown) { - console.warn('getVirtualNodeByKey is deprecated, use getDOMProxyByKey instead') - return this.getDOMProxyByKey(key) - } /** window.requestIdleCallback, or polyfill. */ protected readonly requestIdleCallback = requestIdleCallback /** For debug usage. Just keep it. */ @@ -689,14 +644,6 @@ Or to ignore this message, call \`.dismissSingleModeWarning()\` on the watcher.\ ) }, }) - /** - * {@inheritdoc Watcher.dismissSingleModeWarning} - * @deprecated will removed in 0.7.0 - */ - public enableBatchMode(): this { - console.warn('This method is deprecated. Use dismissSingleModeWarning() instead.') - return this.dismissSingleModeWarning() - } /** * Dismiss the warning that let you enable single mode but the warning is false positive. */ @@ -746,10 +693,6 @@ type OnAddOrRemoveEvent = { value: T } type OnIterationEvent = { - /** @deprecated will remove in 0.7.0 */ - keys: Record<'removed' | 'new' | 'current', unknown[]> - /** @deprecated will remove in 0.7.0 */ - values: Record<'removed' | 'new' | 'current', T[]> new: Map removed: Map current: Map diff --git a/src/DOM/Watchers/EventWatcher.ts b/src/DOM/Watchers/EventWatcher.ts index 03259bb..d5c985e 100644 --- a/src/DOM/Watchers/EventWatcher.ts +++ b/src/DOM/Watchers/EventWatcher.ts @@ -26,8 +26,4 @@ export class EventWatcher< public eventListener = () => { this.requestIdleCallback(this.scheduleWatcherCheck, { timeout: 500 }) } - /** - * {@inheritdoc Watcher.enableSingleMode} - */ - enableSingleMode: () => EventWatcher = this._enableSingleMode as any } diff --git a/src/DOM/Watchers/IntervalWatcher.ts b/src/DOM/Watchers/IntervalWatcher.ts index 717c5e2..b19ea7c 100644 --- a/src/DOM/Watchers/IntervalWatcher.ts +++ b/src/DOM/Watchers/IntervalWatcher.ts @@ -31,8 +31,4 @@ export class IntervalWatcher< super.stopWatch() if (this.timer) clearInterval(this.timer) } - /** - * {@inheritdoc Watcher.enableSingleMode} - */ - enableSingleMode: () => IntervalWatcher = this._enableSingleMode as any } diff --git a/src/DOM/Watchers/MutationObserverWatcher.ts b/src/DOM/Watchers/MutationObserverWatcher.ts index 2f1b9f3..8606c82 100644 --- a/src/DOM/Watchers/MutationObserverWatcher.ts +++ b/src/DOM/Watchers/MutationObserverWatcher.ts @@ -72,8 +72,4 @@ export class MutationObserverWatcher< super.stopWatch() this.observer.disconnect() } - /** - * {@inheritdoc Watcher.enableSingleMode} - */ - enableSingleMode: () => MutationObserverWatcher = this._enableSingleMode as any } diff --git a/src/Extension/AutomatedTabTask.ts b/src/Extension/AutomatedTabTask.ts index 03da5cc..19f21fb 100644 --- a/src/Extension/AutomatedTabTask.ts +++ b/src/Extension/AutomatedTabTask.ts @@ -1,8 +1,9 @@ import { sleep, timeout as timeoutFn } from '../util/sleep' -import { AsyncCall, AsyncCallOptions } from '../util/AsyncCall' +import { AsyncCall, AsyncCallOptions } from 'async-call-rpc' import { GetContext } from './Context' import Lock from 'concurrent-lock' import { memorize } from 'memorize-decorator' +import { MessageCenter } from './MessageCenter' /** * Shared options for AutomatedTabTask between the define-time and the runtime. @@ -138,6 +139,7 @@ export function AutomatedTabTask Pr } const AsyncCallKey = AsyncCallOptions.key const REGISTER = AsyncCallKey + ':ping' + const finalAsyncCallOptions = { messageChannel: new MessageCenter(), ...AsyncCallOptions } if (GetContext() === 'content') { // If run in content script // Register this tab @@ -151,7 +153,7 @@ export function AutomatedTabTask Pr tasksWithId[getTaskNameByTabId(taskName, tabId)] = value } // Register AsyncCall - AsyncCall(tasksWithId, AsyncCallOptions) + AsyncCall(tasksWithId, finalAsyncCallOptions) }, () => {}, ) @@ -170,7 +172,7 @@ export function AutomatedTabTask Pr return undefined }) as browser.runtime.onMessageVoid) // Register a empty AsyncCall for runtime-generated call - const asyncCall = AsyncCall({}, AsyncCallOptions) + const asyncCall = AsyncCall({}, finalAsyncCallOptions) const lock = new Lock(concurrent) const memoRunTask = memorize(createOrGetTheTabToExecuteTask, { ttl: memorizeTTL }) /** diff --git a/src/Extension/MessageCenter.ts b/src/Extension/MessageCenter.ts index eeaf9e6..6a781bc 100644 --- a/src/Extension/MessageCenter.ts +++ b/src/Extension/MessageCenter.ts @@ -1,5 +1,5 @@ import mitt from 'mitt' -import { NoSerialization } from '../util/AsyncCall' +import { NoSerialization } from 'async-call-rpc' type InternalMessageType = { key: Key data: any diff --git a/src/util/AsyncCall.ts b/src/util/AsyncCall.ts deleted file mode 100644 index 013143b..0000000 --- a/src/util/AsyncCall.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { MessageCenter } from '../Extension/MessageCenter' -import { - AsyncCall as AsyncCall_, - AsyncCallOptions, - AsyncGeneratorCall as AsyncGeneratorCall_, - NoSerialization, - Serialization, - JSONSerialization, - MakeAllFunctionsAsync, - MakeAllGeneratorFunctionsAsync, -} from 'async-call-rpc' - -/** - * @deprecated use the async-call-rpc package. will remove in 0.7.0 - */ -export function AsyncCall( - implementation: object | undefined, - options: Partial = {}, -): MakeAllFunctionsAsync { - return AsyncCall_(implementation, { messageChannel: new MessageCenter(), ...options }) -} - -/** - * @deprecated use the async-call-rpc package. will remove in 0.7.0 - */ -export function AsyncGeneratorCall( - implementation: object | undefined, - options: Partial, -): MakeAllGeneratorFunctionsAsync { - return AsyncGeneratorCall_(implementation, { messageChannel: new MessageCenter(), ...options }) -} -/** @deprecated use the async-call-rpc package. will remove in 0.7.0 */ -export { AsyncCallOptions, NoSerialization, JSONSerialization, Serialization } diff --git a/src/util/index.ts b/src/util/index.ts index f753a9b..9b8733b 100644 --- a/src/util/index.ts +++ b/src/util/index.ts @@ -1,2 +1 @@ export * from './ValueRef' -export * from './AsyncCall' From a3dcd4951ef966e068ea6082a64ebfdb18cfe907 Mon Sep 17 00:00:00 2001 From: Jack Works Date: Tue, 31 Dec 2019 12:29:06 +0800 Subject: [PATCH 53/80] docs: regenerate doc --- api-documents/kit.asynccall.md | 28 ----------- api-documents/kit.asyncgeneratorcall.md | 28 ----------- .../kit.eventwatcher.enablesinglemode.md | 13 ----- api-documents/kit.eventwatcher.md | 1 - .../kit.intervalwatcher.enablesinglemode.md | 13 ----- api-documents/kit.intervalwatcher.md | 6 --- api-documents/kit.md | 5 -- api-documents/kit.messagecenter.md | 2 +- .../kit.messagecenter.serialization.md | 2 +- ...utationobserverwatcher.enablesinglemode.md | 13 ----- api-documents/kit.mutationobserverwatcher.md | 1 - .../kit.watcher._enablesinglemode.md | 15 ------ api-documents/kit.watcher.enablebatchmode.md | 22 --------- api-documents/kit.watcher.enablesinglemode.md | 22 --------- .../kit.watcher.getvirtualnodebykey.md | 29 ----------- api-documents/kit.watcher.md | 4 -- doc/holoflows-kit.api.report.md | 48 ++----------------- 17 files changed, 5 insertions(+), 247 deletions(-) delete mode 100644 api-documents/kit.asynccall.md delete mode 100644 api-documents/kit.asyncgeneratorcall.md delete mode 100644 api-documents/kit.eventwatcher.enablesinglemode.md delete mode 100644 api-documents/kit.intervalwatcher.enablesinglemode.md delete mode 100644 api-documents/kit.mutationobserverwatcher.enablesinglemode.md delete mode 100644 api-documents/kit.watcher._enablesinglemode.md delete mode 100644 api-documents/kit.watcher.enablebatchmode.md delete mode 100644 api-documents/kit.watcher.enablesinglemode.md delete mode 100644 api-documents/kit.watcher.getvirtualnodebykey.md diff --git a/api-documents/kit.asynccall.md b/api-documents/kit.asynccall.md deleted file mode 100644 index 83d2f9c..0000000 --- a/api-documents/kit.asynccall.md +++ /dev/null @@ -1,28 +0,0 @@ - - -[Home](./index.md) > [@holoflows/kit](./kit.md) > [AsyncCall](./kit.asynccall.md) - -## AsyncCall() function - -> Warning: This API is now obsolete. -> -> use the async-call-rpc package. will remove in 0.7.0 -> - -Signature: - -```typescript -export declare function AsyncCall(implementation: object | undefined, options?: Partial): MakeAllFunctionsAsync; -``` - -## Parameters - -| Parameter | Type | Description | -| --- | --- | --- | -| implementation | object | undefined | | -| options | Partial<AsyncCallOptions> | | - -Returns: - -`MakeAllFunctionsAsync` - diff --git a/api-documents/kit.asyncgeneratorcall.md b/api-documents/kit.asyncgeneratorcall.md deleted file mode 100644 index 05c911e..0000000 --- a/api-documents/kit.asyncgeneratorcall.md +++ /dev/null @@ -1,28 +0,0 @@ - - -[Home](./index.md) > [@holoflows/kit](./kit.md) > [AsyncGeneratorCall](./kit.asyncgeneratorcall.md) - -## AsyncGeneratorCall() function - -> Warning: This API is now obsolete. -> -> use the async-call-rpc package. will remove in 0.7.0 -> - -Signature: - -```typescript -export declare function AsyncGeneratorCall(implementation: object | undefined, options: Partial): MakeAllGeneratorFunctionsAsync; -``` - -## Parameters - -| Parameter | Type | Description | -| --- | --- | --- | -| implementation | object | undefined | | -| options | Partial<AsyncCallOptions> | | - -Returns: - -`MakeAllGeneratorFunctionsAsync` - diff --git a/api-documents/kit.eventwatcher.enablesinglemode.md b/api-documents/kit.eventwatcher.enablesinglemode.md deleted file mode 100644 index 80101bb..0000000 --- a/api-documents/kit.eventwatcher.enablesinglemode.md +++ /dev/null @@ -1,13 +0,0 @@ - - -[Home](./index.md) > [@holoflows/kit](./kit.md) > [EventWatcher](./kit.eventwatcher.md) > [enableSingleMode](./kit.eventwatcher.enablesinglemode.md) - -## EventWatcher.enableSingleMode property - -Enable single mode. - -Signature: - -```typescript -enableSingleMode: () => EventWatcher; -``` diff --git a/api-documents/kit.eventwatcher.md b/api-documents/kit.eventwatcher.md index b5baa86..d499f3f 100644 --- a/api-documents/kit.eventwatcher.md +++ b/api-documents/kit.eventwatcher.md @@ -31,6 +31,5 @@ document.addEventListener('event', e.eventListener) | Property | Modifiers | Type | Description | | --- | --- | --- | --- | -| [enableSingleMode](./kit.eventwatcher.enablesinglemode.md) | | () => EventWatcher<T, Before, After, true> | Enable single mode. | | [eventListener](./kit.eventwatcher.eventlistener.md) | | () => void | Use this function as event listener to invoke watcher. | diff --git a/api-documents/kit.intervalwatcher.enablesinglemode.md b/api-documents/kit.intervalwatcher.enablesinglemode.md deleted file mode 100644 index 61efa82..0000000 --- a/api-documents/kit.intervalwatcher.enablesinglemode.md +++ /dev/null @@ -1,13 +0,0 @@ - - -[Home](./index.md) > [@holoflows/kit](./kit.md) > [IntervalWatcher](./kit.intervalwatcher.md) > [enableSingleMode](./kit.intervalwatcher.enablesinglemode.md) - -## IntervalWatcher.enableSingleMode property - -Enable single mode. - -Signature: - -```typescript -enableSingleMode: () => IntervalWatcher; -``` diff --git a/api-documents/kit.intervalwatcher.md b/api-documents/kit.intervalwatcher.md index 276b588..004f725 100644 --- a/api-documents/kit.intervalwatcher.md +++ b/api-documents/kit.intervalwatcher.md @@ -24,12 +24,6 @@ new IntervalWatcher(ls) ``` -## Properties - -| Property | Modifiers | Type | Description | -| --- | --- | --- | --- | -| [enableSingleMode](./kit.intervalwatcher.enablesinglemode.md) | | () => IntervalWatcher<T, Before, After, true> | Enable single mode. | - ## Methods | Method | Modifiers | Description | diff --git a/api-documents/kit.md b/api-documents/kit.md index 44dbf27..25f1052 100644 --- a/api-documents/kit.md +++ b/api-documents/kit.md @@ -22,10 +22,7 @@ A toolkit for browser extension developing. | Function | Description | | --- | --- | -| [AsyncCall(implementation, options)](./kit.asynccall.md) | | -| [AsyncGeneratorCall(implementation, options)](./kit.asyncgeneratorcall.md) | | | [AutomatedTabTask(taskImplements, options)](./kit.automatedtabtask.md) | Open a new page in the background, execute some task, then close it automatically. | -| [DomProxy(args)](./kit.domproxy.md) | DOMProxy provide an interface that be stable even dom is changed. | | [DOMProxy(options)](./kit.domproxy.md) | DOMProxy provide an interface that be stable even dom is changed. | | [GetContext()](./kit.getcontext.md) | Get current running context. | | [OnlyRunInContext(context, name)](./kit.onlyrunincontext.md) | Make sure this file only run in wanted context | @@ -38,9 +35,7 @@ A toolkit for browser extension developing. | [AutomatedTabTaskDefineTimeOptions](./kit.automatedtabtaskdefinetimeoptions.md) | Define-time options for [AutomatedTabTask()](./kit.automatedtabtask.md) | | [AutomatedTabTaskRuntimeOptions](./kit.automatedtabtaskruntimeoptions.md) | Runtime options for [AutomatedTabTask()](./kit.automatedtabtask.md) | | [AutomatedTabTaskSharedOptions](./kit.automatedtabtasksharedoptions.md) | Shared options for AutomatedTabTask between the define-time and the runtime. | -| [DomProxy](./kit.domproxy.md) | DOMProxy provide an interface that be stable even dom is changed. | | [DOMProxy](./kit.domproxy.md) | DOMProxy provide an interface that be stable even dom is changed. | -| [DomProxyOptions](./kit.domproxyoptions.md) | Options for DOMProxy | | [DOMProxyOptions](./kit.domproxyoptions.md) | Options for DOMProxy | ## Namespaces diff --git a/api-documents/kit.messagecenter.md b/api-documents/kit.messagecenter.md index a441f34..566457b 100644 --- a/api-documents/kit.messagecenter.md +++ b/api-documents/kit.messagecenter.md @@ -22,7 +22,7 @@ export declare class MessageCenter | Property | Modifiers | Type | Description | | --- | --- | --- | --- | -| [serialization](./kit.messagecenter.serialization.md) | | import("async-call-rpc/out/Async-Call").Serialization | How should MessageCenter serialization the message | +| [serialization](./kit.messagecenter.serialization.md) | | import("async-call-rpc").Serialization | How should MessageCenter serialization the message | | [writeToConsole](./kit.messagecenter.writetoconsole.md) | | boolean | Should MessageCenter prints all messages to console? | ## Methods diff --git a/api-documents/kit.messagecenter.serialization.md b/api-documents/kit.messagecenter.serialization.md index 2451d45..0d37051 100644 --- a/api-documents/kit.messagecenter.serialization.md +++ b/api-documents/kit.messagecenter.serialization.md @@ -9,5 +9,5 @@ How should MessageCenter serialization the message Signature: ```typescript -serialization: import("async-call-rpc/out/Async-Call").Serialization; +serialization: import("async-call-rpc").Serialization; ``` diff --git a/api-documents/kit.mutationobserverwatcher.enablesinglemode.md b/api-documents/kit.mutationobserverwatcher.enablesinglemode.md deleted file mode 100644 index 3d186b9..0000000 --- a/api-documents/kit.mutationobserverwatcher.enablesinglemode.md +++ /dev/null @@ -1,13 +0,0 @@ - - -[Home](./index.md) > [@holoflows/kit](./kit.md) > [MutationObserverWatcher](./kit.mutationobserverwatcher.md) > [enableSingleMode](./kit.mutationobserverwatcher.enablesinglemode.md) - -## MutationObserverWatcher.enableSingleMode property - -Enable single mode. - -Signature: - -```typescript -enableSingleMode: () => MutationObserverWatcher; -``` diff --git a/api-documents/kit.mutationobserverwatcher.md b/api-documents/kit.mutationobserverwatcher.md index 5667064..cbaf4a7 100644 --- a/api-documents/kit.mutationobserverwatcher.md +++ b/api-documents/kit.mutationobserverwatcher.md @@ -34,7 +34,6 @@ new MutationObserverWatcher(ls) | Property | Modifiers | Type | Description | | --- | --- | --- | --- | -| [enableSingleMode](./kit.mutationobserverwatcher.enablesinglemode.md) | | () => MutationObserverWatcher<T, Before, After, true> | Enable single mode. | | [liveSelector](./kit.mutationobserverwatcher.liveselector.md) | | LiveSelector<T, SingleMode> | LiveSelector that this object holds | ## Methods diff --git a/api-documents/kit.watcher._enablesinglemode.md b/api-documents/kit.watcher._enablesinglemode.md deleted file mode 100644 index cd0b9fa..0000000 --- a/api-documents/kit.watcher._enablesinglemode.md +++ /dev/null @@ -1,15 +0,0 @@ - - -[Home](./index.md) > [@holoflows/kit](./kit.md) > [Watcher](./kit.watcher.md) > [\_enableSingleMode](./kit.watcher._enablesinglemode.md) - -## Watcher.\_enableSingleMode() method - -Signature: - -```typescript -protected _enableSingleMode(): this; -``` -Returns: - -`this` - diff --git a/api-documents/kit.watcher.enablebatchmode.md b/api-documents/kit.watcher.enablebatchmode.md deleted file mode 100644 index 05ec99a..0000000 --- a/api-documents/kit.watcher.enablebatchmode.md +++ /dev/null @@ -1,22 +0,0 @@ - - -[Home](./index.md) > [@holoflows/kit](./kit.md) > [Watcher](./kit.watcher.md) > [enableBatchMode](./kit.watcher.enablebatchmode.md) - -## Watcher.enableBatchMode() method - -> Warning: This API is now obsolete. -> -> will removed in 0.7.0 -> - -Dismiss the warning that let you enable single mode but the warning is false positive. - -Signature: - -```typescript -enableBatchMode(): this; -``` -Returns: - -`this` - diff --git a/api-documents/kit.watcher.enablesinglemode.md b/api-documents/kit.watcher.enablesinglemode.md deleted file mode 100644 index 4da5ed4..0000000 --- a/api-documents/kit.watcher.enablesinglemode.md +++ /dev/null @@ -1,22 +0,0 @@ - - -[Home](./index.md) > [@holoflows/kit](./kit.md) > [Watcher](./kit.watcher.md) > [enableSingleMode](./kit.watcher.enablesinglemode.md) - -## Watcher.enableSingleMode() method - -> Warning: This API is now obsolete. -> -> Use LiveSelector.enableSingleMode(), will removed in 0.7.0 -> - -Enable single mode. - -Signature: - -```typescript -abstract enableSingleMode(): Watcher; -``` -Returns: - -`Watcher` - diff --git a/api-documents/kit.watcher.getvirtualnodebykey.md b/api-documents/kit.watcher.getvirtualnodebykey.md deleted file mode 100644 index bd57592..0000000 --- a/api-documents/kit.watcher.getvirtualnodebykey.md +++ /dev/null @@ -1,29 +0,0 @@ - - -[Home](./index.md) > [@holoflows/kit](./kit.md) > [Watcher](./kit.watcher.md) > [getVirtualNodeByKey](./kit.watcher.getvirtualnodebykey.md) - -## Watcher.getVirtualNodeByKey() method - -> Warning: This API is now obsolete. -> -> use getDOMProxyByKey instead. will removed in 0.7.0 -> - -Get DOMProxy by key. DOMProxy will be unavailable if it is deleted - -Signature: - -```typescript -getVirtualNodeByKey(key: unknown): DOMProxy | null; -``` - -## Parameters - -| Parameter | Type | Description | -| --- | --- | --- | -| key | unknown | Key used to find DOMProxy | - -Returns: - -`DOMProxy | null` - diff --git a/api-documents/kit.watcher.md b/api-documents/kit.watcher.md index 822b0e9..87ef453 100644 --- a/api-documents/kit.watcher.md +++ b/api-documents/kit.watcher.md @@ -47,7 +47,6 @@ export declare abstract class Watcherstatic | Call this function to enhance the debug experience in the Chrome DevToolsYou need to open "Enable custom formatters" in your DevTools settings. | | [getDOMProxyByKey(key)](./kit.watcher.getdomproxybykey.md) | | Get DOMProxy by key. DOMProxy will be unavailable if it is deleted | -| [getVirtualNodeByKey(key)](./kit.watcher.getvirtualnodebykey.md) | | Get DOMProxy by key. DOMProxy will be unavailable if it is deleted | | [omitWarningForForgetWatch()](./kit.watcher.omitwarningforforgetwatch.md) | | If you're expecting Watcher may not be called, call this function, this will omit the warning. | | [omitWarningForRepeatedKeys()](./kit.watcher.omitwarningforrepeatedkeys.md) | | If you're expecting repeating keys, call this function, this will omit the warning. | | [removeListener(event, fn)](./kit.watcher.removelistener.md) | | | diff --git a/doc/holoflows-kit.api.report.md b/doc/holoflows-kit.api.report.md index 9dd97fc..d9dc3df 100644 --- a/doc/holoflows-kit.api.report.md +++ b/doc/holoflows-kit.api.report.md @@ -5,20 +5,7 @@ ```ts import { AsyncCallOptions } from 'async-call-rpc'; -import { JSONSerialization } from 'async-call-rpc'; -import { MakeAllFunctionsAsync } from 'async-call-rpc'; -import { MakeAllGeneratorFunctionsAsync } from 'async-call-rpc'; import mitt from 'mitt'; -import { NoSerialization } from 'async-call-rpc'; -import { Serialization } from 'async-call-rpc'; - -// @public @deprecated (undocumented) -export function AsyncCall(implementation: object | undefined, options?: Partial): MakeAllFunctionsAsync; - -export { AsyncCallOptions } - -// @public @deprecated (undocumented) -export function AsyncGeneratorCall(implementation: object | undefined, options: Partial): MakeAllGeneratorFunctionsAsync; // @public export function AutomatedTabTask PromiseLike>>(taskImplements: T, options?: Partial): ((urlOrTabID: string | number, options?: Partial) => T) | null; @@ -80,13 +67,6 @@ export interface DOMProxy): ReturnType; - -// @public @deprecated -export interface DomProxy extends DOMProxy { -} - // @public export interface DOMProxyOptions { afterShadowRootInit: ShadowRootInit; @@ -95,14 +75,9 @@ export interface DOMProxyOptions extends DOMProxyOptions { -} - // @public export class EventWatcher extends Watcher { constructor(liveSelector: LiveSelector); - enableSingleMode: () => EventWatcher; eventListener: () => void; } @@ -111,13 +86,10 @@ export function GetContext(): Contexts; // @public export class IntervalWatcher extends Watcher { - enableSingleMode: () => IntervalWatcher; startWatch(interval: number): this; stopWatch(): void; } -export { JSONSerialization } - // @public export class LiveSelector { constructor(initialElements?: readonly T[]); @@ -165,7 +137,7 @@ export class MessageCenter { off(event: Key, handler: (data: ITypedMessages[Key]) => void): void; on(event: Key, handler: (data: ITypedMessages[Key]) => void): () => void; send(...args: Parameters['emit']>): ReturnType['emit']>; - serialization: import("async-call-rpc/out/Async-Call").Serialization; + serialization: import("async-call-rpc").Serialization; writeToConsole: boolean; } @@ -177,22 +149,17 @@ export class MutationObserverWatcher MutationObserverWatcher; protected liveSelector: LiveSelector; startWatch(options: MutationObserverInit): this; stopWatch(): void; } -export { NoSerialization } - // @public export function OnlyRunInContext(context: Contexts | Contexts[], name: string): void; // @public export function OnlyRunInContext(context: Contexts | Contexts[], throws: false): boolean; -export { Serialization } - // @public @eventProperty export class ValueRef { constructor(_value: T, isEqual?: (a: T, b: T) => boolean); @@ -238,20 +205,12 @@ export abstract class Watcher): void; // (undocumented) protected emit(event: 'onAdd', data: OnAddOrRemoveEvent): void; - // @deprecated - enableBatchMode(): this; - // @deprecated - abstract enableSingleMode(): Watcher; - // (undocumented) - protected _enableSingleMode(): this; static enhanceDebugger(): void; - protected get singleMode(): boolean; protected readonly eventEmitter: mitt.Emitter; + protected get singleMode(): boolean; protected findNodeFromListByKey: (list: readonly T[], keys: readonly unknown[]) => (key: unknown) => T | null; protected _firstDOMProxy: DOMProxy; getDOMProxyByKey(key: unknown): DOMProxy | null; - // @deprecated - getVirtualNodeByKey(key: unknown): DOMProxy | null; protected isWatching: boolean; protected keyComparer: (a: unknown, b: unknown) => boolean; protected lastCallbackMap: Map>; @@ -266,12 +225,11 @@ export abstract class Watcher>): this; // (undocumented) removeListener(event: 'onChange', fn: EventCallback>): this; - get firstDOMProxy(): T extends Node ? DOMProxy : never; - get firstVirtualNode(): T extends Node ? DOMProxy : never; // (undocumented) removeListener(event: 'onRemove', fn: EventCallback>): this; // (undocumented) removeListener(event: 'onAdd', fn: EventCallback>): this; + get firstDOMProxy(): T extends Node ? DOMProxy : never; // Warning: (ae-forgotten-export) The symbol "requestIdleCallback" needs to be exported by the entry point index.d.ts protected readonly requestIdleCallback: typeof requestIdleCallback; protected scheduleWatcherCheck: () => void; From f2d197e3db0befc7ccd8dd60d811dfa3cde46874 Mon Sep 17 00:00:00 2001 From: Jack Works Date: Wed, 15 Jan 2020 12:24:41 +0800 Subject: [PATCH 54/80] Update ValueRef.ts --- src/util/ValueRef.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/util/ValueRef.ts b/src/util/ValueRef.ts index 7e496a9..ed703d3 100644 --- a/src/util/ValueRef.ts +++ b/src/util/ValueRef.ts @@ -7,10 +7,18 @@ * @example * ```ts * const ref = new ValueRef(64) - * function useRef() { - * const [state, setState] = React.useState(ref.value) - * React.useEffect(() => ref.addListener(e => setState(e))) - * return state + * function useValueRef(ref: ValueRef) { + * const { useState, useEffect } = safeReact() + * + * const [value, setValue] = useState(ref.value) + * useEffect(() => { + * if (ref.isEqual(value, ref.value) === false) { + * // The state is outdated before the useEffect runs + * setValue(ref.value) + * } + * return ref.addListener(v => setValue(v)) + * }, [ref, value]) + * return value * } * ref.value = 42 // useRef will receive the new value * ``` From 2706ea62f5a2df98fceeeed85224c0e0be93f3cb Mon Sep 17 00:00:00 2001 From: Jack Works Date: Wed, 15 Jan 2020 12:25:11 +0800 Subject: [PATCH 55/80] Update ValueRef.ts --- src/util/ValueRef.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/ValueRef.ts b/src/util/ValueRef.ts index ed703d3..857620d 100644 --- a/src/util/ValueRef.ts +++ b/src/util/ValueRef.ts @@ -8,7 +8,7 @@ * ```ts * const ref = new ValueRef(64) * function useValueRef(ref: ValueRef) { - * const { useState, useEffect } = safeReact() + * const { useState, useEffect } = React * * const [value, setValue] = useState(ref.value) * useEffect(() => { From a3c2f6579873636ea06d17509e4ec947af395b1d Mon Sep 17 00:00:00 2001 From: Jack Works Date: Sun, 19 Jan 2020 14:23:58 +0800 Subject: [PATCH 56/80] fix: type not portable error --- api-documents/kit.md | 1 + api-documents/kit.messagecenter.md | 2 +- .../kit.messagecenter.serialization.md | 2 +- .../kit.serialization.deserialization.md | 24 +++++++++++++++++++ api-documents/kit.serialization.md | 21 ++++++++++++++++ .../kit.serialization.serialization.md | 24 +++++++++++++++++++ api-documents/kit.valueref.md | 16 +++++++++---- doc/holoflows-kit.api.report.md | 8 ++++++- src/Extension/MessageCenter.ts | 17 ++++++++++++- 9 files changed, 107 insertions(+), 8 deletions(-) create mode 100644 api-documents/kit.serialization.deserialization.md create mode 100644 api-documents/kit.serialization.md create mode 100644 api-documents/kit.serialization.serialization.md diff --git a/api-documents/kit.md b/api-documents/kit.md index 25f1052..2617dbc 100644 --- a/api-documents/kit.md +++ b/api-documents/kit.md @@ -37,6 +37,7 @@ A toolkit for browser extension developing. | [AutomatedTabTaskSharedOptions](./kit.automatedtabtasksharedoptions.md) | Shared options for AutomatedTabTask between the define-time and the runtime. | | [DOMProxy](./kit.domproxy.md) | DOMProxy provide an interface that be stable even dom is changed. | | [DOMProxyOptions](./kit.domproxyoptions.md) | Options for DOMProxy | +| [Serialization](./kit.serialization.md) | Define how to do serialization and deserialization of remote procedure call | ## Namespaces diff --git a/api-documents/kit.messagecenter.md b/api-documents/kit.messagecenter.md index 566457b..28d3360 100644 --- a/api-documents/kit.messagecenter.md +++ b/api-documents/kit.messagecenter.md @@ -22,7 +22,7 @@ export declare class MessageCenter | Property | Modifiers | Type | Description | | --- | --- | --- | --- | -| [serialization](./kit.messagecenter.serialization.md) | | import("async-call-rpc").Serialization | How should MessageCenter serialization the message | +| [serialization](./kit.messagecenter.serialization.md) | | Serialization | How should MessageCenter serialization the message | | [writeToConsole](./kit.messagecenter.writetoconsole.md) | | boolean | Should MessageCenter prints all messages to console? | ## Methods diff --git a/api-documents/kit.messagecenter.serialization.md b/api-documents/kit.messagecenter.serialization.md index 0d37051..451687c 100644 --- a/api-documents/kit.messagecenter.serialization.md +++ b/api-documents/kit.messagecenter.serialization.md @@ -9,5 +9,5 @@ How should MessageCenter serialization the message Signature: ```typescript -serialization: import("async-call-rpc").Serialization; +serialization: Serialization; ``` diff --git a/api-documents/kit.serialization.deserialization.md b/api-documents/kit.serialization.deserialization.md new file mode 100644 index 0000000..b8e8d9c --- /dev/null +++ b/api-documents/kit.serialization.deserialization.md @@ -0,0 +1,24 @@ + + +[Home](./index.md) > [@holoflows/kit](./kit.md) > [Serialization](./kit.serialization.md) > [deserialization](./kit.serialization.deserialization.md) + +## Serialization.deserialization() method + +Do deserialization + +Signature: + +```typescript +deserialization(serialized: unknown): PromiseLike; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| serialized | unknown | Serialized data | + +Returns: + +`PromiseLike` + diff --git a/api-documents/kit.serialization.md b/api-documents/kit.serialization.md new file mode 100644 index 0000000..8afb5e2 --- /dev/null +++ b/api-documents/kit.serialization.md @@ -0,0 +1,21 @@ + + +[Home](./index.md) > [@holoflows/kit](./kit.md) > [Serialization](./kit.serialization.md) + +## Serialization interface + +Define how to do serialization and deserialization of remote procedure call + +Signature: + +```typescript +export interface Serialization +``` + +## Methods + +| Method | Description | +| --- | --- | +| [deserialization(serialized)](./kit.serialization.deserialization.md) | Do deserialization | +| [serialization(from)](./kit.serialization.serialization.md) | Do serialization | + diff --git a/api-documents/kit.serialization.serialization.md b/api-documents/kit.serialization.serialization.md new file mode 100644 index 0000000..6efbd58 --- /dev/null +++ b/api-documents/kit.serialization.serialization.md @@ -0,0 +1,24 @@ + + +[Home](./index.md) > [@holoflows/kit](./kit.md) > [Serialization](./kit.serialization.md) > [serialization](./kit.serialization.serialization.md) + +## Serialization.serialization() method + +Do serialization + +Signature: + +```typescript +serialization(from: any): PromiseLike; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| from | any | original data | + +Returns: + +`PromiseLike` + diff --git a/api-documents/kit.valueref.md b/api-documents/kit.valueref.md index 17c209e..2701550 100644 --- a/api-documents/kit.valueref.md +++ b/api-documents/kit.valueref.md @@ -17,10 +17,18 @@ export declare class ValueRef ```ts const ref = new ValueRef(64) -function useRef() { - const [state, setState] = React.useState(ref.value) - React.useEffect(() => ref.addListener(e => setState(e))) - return state +function useValueRef(ref: ValueRef) { + const { useState, useEffect } = React + + const [value, setValue] = useState(ref.value) + useEffect(() => { + if (ref.isEqual(value, ref.value) === false) { + // The state is outdated before the useEffect runs + setValue(ref.value) + } + return ref.addListener(v => setValue(v)) + }, [ref, value]) + return value } ref.value = 42 // useRef will receive the new value diff --git a/doc/holoflows-kit.api.report.md b/doc/holoflows-kit.api.report.md index d9dc3df..487e947 100644 --- a/doc/holoflows-kit.api.report.md +++ b/doc/holoflows-kit.api.report.md @@ -137,7 +137,7 @@ export class MessageCenter { off(event: Key, handler: (data: ITypedMessages[Key]) => void): void; on(event: Key, handler: (data: ITypedMessages[Key]) => void): () => void; send(...args: Parameters['emit']>): ReturnType['emit']>; - serialization: import("async-call-rpc").Serialization; + serialization: Serialization; writeToConsole: boolean; } @@ -160,6 +160,12 @@ export function OnlyRunInContext(context: Contexts | Contexts[], name: string): // @public export function OnlyRunInContext(context: Contexts | Contexts[], throws: false): boolean; +// @public +export interface Serialization { + deserialization(serialized: unknown): PromiseLike; + serialization(from: any): PromiseLike; +} + // @public @eventProperty export class ValueRef { constructor(_value: T, isEqual?: (a: T, b: T) => boolean); diff --git a/src/Extension/MessageCenter.ts b/src/Extension/MessageCenter.ts index 6a781bc..647854f 100644 --- a/src/Extension/MessageCenter.ts +++ b/src/Extension/MessageCenter.ts @@ -1,5 +1,20 @@ import mitt from 'mitt' import { NoSerialization } from 'async-call-rpc' +/** + * Define how to do serialization and deserialization of remote procedure call + */ +export interface Serialization { + /** + * Do serialization + * @param from - original data + */ + serialization(from: any): PromiseLike + /** + * Do deserialization + * @param serialized - Serialized data + */ + deserialization(serialized: unknown): PromiseLike +} type InternalMessageType = { key: Key data: any @@ -16,7 +31,7 @@ export class MessageCenter { * How should MessageCenter serialization the message * @defaultValue NoSerialization */ - public serialization = NoSerialization + public serialization: Serialization = NoSerialization private eventEmitter = mitt() private listener = async (request: InternalMessageType | Event) => { let { key, data, instanceKey } = await this.serialization.deserialization( From 7e627eefaf208cf534e2f2a14381ee863c3d056e Mon Sep 17 00:00:00 2001 From: Jack Works Date: Sun, 19 Jan 2020 14:31:03 +0800 Subject: [PATCH 57/80] fix: bypass concurrent lock --- src/Extension/AutomatedTabTask.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Extension/AutomatedTabTask.ts b/src/Extension/AutomatedTabTask.ts index 19f21fb..30f32bd 100644 --- a/src/Extension/AutomatedTabTask.ts +++ b/src/Extension/AutomatedTabTask.ts @@ -277,7 +277,7 @@ async function createOrGetTheTabToExecuteTask(options: createOrGetTheTabToExecut /** * does it need a lock to avoid too many open at the same time? */ - const withoutLock = Boolean(isImportant || autoClose === false || active || typeof wantedTabID !== 'number') + const withoutLock = Boolean(isImportant || autoClose === false || active || !(typeof wantedTabID === 'number')) if (!withoutLock) await lock.lock(timeout) const tabId = await getTabOrCreate(wantedTabID, url, needRedirect, active, pinned) From fd9899bd72a80a4f48b87411018880051a264e6c Mon Sep 17 00:00:00 2001 From: Jack Works Date: Sun, 19 Jan 2020 14:36:16 +0800 Subject: [PATCH 58/80] chore: update deps --- api-documents/kit.valueref.md | 1 + api-documents/kit.valueref.value.md | 15 + api-documents/kit.watcher.firstdomproxy.md | 13 + api-documents/kit.watcher.md | 2 + api-documents/kit.watcher.singlemode.md | 13 + doc/holoflows-kit.api.report.md | 8 +- package.json | 16 +- yarn.lock | 438 +++++++++++++-------- 8 files changed, 321 insertions(+), 185 deletions(-) create mode 100644 api-documents/kit.valueref.value.md create mode 100644 api-documents/kit.watcher.firstdomproxy.md create mode 100644 api-documents/kit.watcher.singlemode.md diff --git a/api-documents/kit.valueref.md b/api-documents/kit.valueref.md index 2701550..a595e0e 100644 --- a/api-documents/kit.valueref.md +++ b/api-documents/kit.valueref.md @@ -45,6 +45,7 @@ ref.value = 42 // useRef will receive the new value | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [isEqual](./kit.valueref.isequal.md) | | (a: T, b: T) => boolean | | +| [value](./kit.valueref.value.md) | | T | Get current value | ## Methods diff --git a/api-documents/kit.valueref.value.md b/api-documents/kit.valueref.value.md new file mode 100644 index 0000000..9d0b98e --- /dev/null +++ b/api-documents/kit.valueref.value.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@holoflows/kit](./kit.md) > [ValueRef](./kit.valueref.md) > [value](./kit.valueref.value.md) + +## ValueRef.value property + +Get current value + +Signature: + +```typescript +get value(): T; + +set value(newVal: T); +``` diff --git a/api-documents/kit.watcher.firstdomproxy.md b/api-documents/kit.watcher.firstdomproxy.md new file mode 100644 index 0000000..4d68656 --- /dev/null +++ b/api-documents/kit.watcher.firstdomproxy.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@holoflows/kit](./kit.md) > [Watcher](./kit.watcher.md) > [firstDOMProxy](./kit.watcher.firstdomproxy.md) + +## Watcher.firstDOMProxy property + +This DOMProxy always point to the first node in the LiveSelector + +Signature: + +```typescript +get firstDOMProxy(): T extends Node ? DOMProxy : never; +``` diff --git a/api-documents/kit.watcher.md b/api-documents/kit.watcher.md index 87ef453..dfde60d 100644 --- a/api-documents/kit.watcher.md +++ b/api-documents/kit.watcher.md @@ -27,6 +27,7 @@ export declare abstract class WatcherPartial<DOMProxyOptions<Before, After>> | The dom proxy option used in DOMProxy() | | [eventEmitter](./kit.watcher.eventemitter.md) | | mitt.Emitter | Event emitter | | [findNodeFromListByKey](./kit.watcher.findnodefromlistbykey.md) | | (list: readonly T[], keys: readonly unknown[]) => (key: unknown) => T | null | Find node from the given list by key | +| [firstDOMProxy](./kit.watcher.firstdomproxy.md) | | T extends Node ? DOMProxy<T, Before, After> : never | This DOMProxy always point to the first node in the LiveSelector | | [isWatching](./kit.watcher.iswatching.md) | | boolean | Is the watcher running | | [keyComparer](./kit.watcher.keycomparer.md) | | (a: unknown, b: unknown) => boolean | Compare between key and key, in case of you don't want the default behavior | | [lastCallbackMap](./kit.watcher.lastcallbackmap.md) | | Map<unknown, useForeachReturns<T>> | Saved callback map of last watch | @@ -37,6 +38,7 @@ export declare abstract class Watcher(node: T, index: number, arr: readonly T[]) => unknown | Map Node -> Key, in case of you don't want the default behavior | | [requestIdleCallback](./kit.watcher.requestidlecallback.md) | | typeof requestIdleCallback | window.requestIdleCallback, or polyfill. | | [scheduleWatcherCheck](./kit.watcher.schedulewatchercheck.md) | | () => void | Schedule a watcher check | +| [singleMode](./kit.watcher.singlemode.md) | | boolean | Is the single mode is on. | | [singleModeCallback](./kit.watcher.singlemodecallback.md) | | useForeachReturns<T> | Callback for single mode | | [singleModeHasLastValue](./kit.watcher.singlemodehaslastvalue.md) | | boolean | Does it has a last iteration value in single mode? | | [singleModeLastValue](./kit.watcher.singlemodelastvalue.md) | | T | Last iteration value for single mode | diff --git a/api-documents/kit.watcher.singlemode.md b/api-documents/kit.watcher.singlemode.md new file mode 100644 index 0000000..390a546 --- /dev/null +++ b/api-documents/kit.watcher.singlemode.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@holoflows/kit](./kit.md) > [Watcher](./kit.watcher.md) > [singleMode](./kit.watcher.singlemode.md) + +## Watcher.singleMode property + +Is the single mode is on. + +Signature: + +```typescript +protected get singleMode(): boolean; +``` diff --git a/doc/holoflows-kit.api.report.md b/doc/holoflows-kit.api.report.md index 487e947..b4c38e0 100644 --- a/doc/holoflows-kit.api.report.md +++ b/doc/holoflows-kit.api.report.md @@ -170,12 +170,12 @@ export interface Serialization { export class ValueRef { constructor(_value: T, isEqual?: (a: T, b: T) => boolean); addListener(fn: (newVal: T, oldVal: T) => void): () => void; - get value(): T; - set value(newVal: T); // (undocumented) isEqual: (a: T, b: T) => boolean; removeAllListener(): void; removeListener(fn: (newVal: T, oldVal: T) => void): void; + get value(): T; + set value(newVal: T); } // Warning: (ae-forgotten-export) The symbol "ResultOf" needs to be exported by the entry point index.d.ts @@ -213,8 +213,8 @@ export abstract class Watcher): void; static enhanceDebugger(): void; protected readonly eventEmitter: mitt.Emitter; - protected get singleMode(): boolean; protected findNodeFromListByKey: (list: readonly T[], keys: readonly unknown[]) => (key: unknown) => T | null; + get firstDOMProxy(): T extends Node ? DOMProxy : never; protected _firstDOMProxy: DOMProxy; getDOMProxyByKey(key: unknown): DOMProxy | null; protected isWatching: boolean; @@ -235,12 +235,12 @@ export abstract class Watcher>): this; // (undocumented) removeListener(event: 'onAdd', fn: EventCallback>): this; - get firstDOMProxy(): T extends Node ? DOMProxy : never; // Warning: (ae-forgotten-export) The symbol "requestIdleCallback" needs to be exported by the entry point index.d.ts protected readonly requestIdleCallback: typeof requestIdleCallback; protected scheduleWatcherCheck: () => void; setComparer(keyComparer?: (a: unknown, b: unknown) => boolean, valueComparer?: (a: T, b: T) => boolean): this; setDOMProxyOption(option: Partial>): this; + protected get singleMode(): boolean; protected singleModeCallback?: useForeachReturns; protected singleModeHasLastValue: boolean; protected singleModeLastValue?: T; diff --git a/package.json b/package.json index 152399b..d219a16 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ }, "readme": "https://github.com/project-holoflows/holoflows-kit/blob/master/README.md", "dependencies": { - "async-call-rpc": "^1.0.0", + "async-call-rpc": "^1.0.4", "concurrent-lock": "^1.0.7", "jsx-jsonml-devtools-renderer": "^1.4.1", "lodash-es": "^4.17.15", @@ -33,24 +33,24 @@ "test": "cross-env TS_NODE_COMPILER_OPTIONS='{ \"module\": \"commonjs\" }' mocha -r ts-node/register/transpile-only -r source-map-support/register -r jsdom-global/register --recursive src/**/*.spec.ts" }, "devDependencies": { - "@microsoft/api-documenter": "^7.5.0", - "@microsoft/api-extractor": "^7.5.0", + "@microsoft/api-documenter": "^7.7.8", + "@microsoft/api-extractor": "^7.7.5", "@rollup/plugin-replace": "^2.2.0", "@types/lodash-es": "^4.1.4", "@types/mocha": "^5.2.7", "cross-env": "^6.0.3", - "jsdom": "^15.2.0", + "jsdom": "^16.0.0", "jsdom-global": "^3.0.2", - "mocha": "^6.2.1", + "mocha": "^7.0.0", "npm-run-all": "^4.1.5", "rimraf": "^3.0.0", - "rollup": "^1.23.1", + "rollup": "^1.29.0", "rollup-plugin-commonjs": "^10.1.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-typescript2": "^0.25.2", "source-map-support": "^0.5.13", - "ts-node": "^8.4.1", - "typescript": "^3.6.4", + "ts-node": "^8.6.2", + "typescript": "^3.7.5", "web-ext-types": "^3.2.1" }, "peerDependencies": { diff --git a/yarn.lock b/yarn.lock index 427427a..28e0bf7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9,43 +9,35 @@ dependencies: regenerator-runtime "^0.13.2" -"@microsoft/api-documenter@^7.5.0": - version "7.7.2" - resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.7.2.tgz#b6897f052ad447d6bb74f806287e8846c64691da" - integrity sha512-4mWE5G3grYd4PX5D6awiKa3B3GOXumkyGspgeTwlOBxrmj0FuVFRNPVZxGU0NqYnaw/bW4cg4ftUnSDzycrW+A== - dependencies: - "@microsoft/api-extractor-model" "7.7.0" - "@microsoft/node-core-library" "3.18.0" - "@microsoft/ts-command-line" "4.3.5" +"@microsoft/api-documenter@^7.7.8": + version "7.7.8" + resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.7.8.tgz#cb65c51a8f745aa353f6708102c8a3c56d3c57ef" + integrity sha512-NxUQ4ucJ1t9a65iEXvM+mSSCkhK47MXaA/ZBjOUdz5/DrdaVwlYwzyKgFaZ1eIzpmnwBVwCCxLhYRXaWonNuYw== + dependencies: + "@microsoft/api-extractor-model" "7.7.4" + "@microsoft/node-core-library" "3.19.0" + "@microsoft/ts-command-line" "4.3.9" "@microsoft/tsdoc" "0.12.14" colors "~1.2.1" js-yaml "~3.13.1" resolve "1.8.1" -"@microsoft/api-extractor-model@7.6.0": - version "7.6.0" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.6.0.tgz#0cac9ae4fc94f168166e9383f18b39b6aa0826f8" - integrity sha512-7gtxCxUMLDv3k1NE7MCaUaQeAwH5dEt/vjnq22cOUiCfiYOxdrvolab+WIXSNKV6rhe+AnIovR9tkxtxw5OiYA== +"@microsoft/api-extractor-model@7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.7.4.tgz#45a1bd38499db5ae56dcecf1f68d4cf3c50a63ac" + integrity sha512-/UGBXzEwOAYAS9Xg9I9RF3f+Fp1dowddMlisUlBASGJT38/ZhlMb8Zp0Y0ThJcY+VA6Wya0cMK3c/Lo2u+f2EQ== dependencies: - "@microsoft/node-core-library" "3.18.0" + "@microsoft/node-core-library" "3.19.0" "@microsoft/tsdoc" "0.12.14" -"@microsoft/api-extractor-model@7.7.0": - version "7.7.0" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.7.0.tgz#a5e86a638fa3fea283aeebc4785d8150652f30c6" - integrity sha512-9yrSr9LpdNnx7X8bXVb/YbcQopizsr43McAG7Xno5CMNFzbSkmIr8FJL0L+WGfrSWSTms9Bngfz7d1ScP6zbWQ== +"@microsoft/api-extractor@^7.7.5": + version "7.7.5" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.7.5.tgz#eeae706cb5a9b0e0ae1c3f2547520650de26b826" + integrity sha512-/tZkNOFRS27c/ZCsiTbVdTvD10b7UMCX2hlzqQGN5wMWyoblpQy0cZBuRrQBuRllkgXoXeiMpeTf8NcSSl+IjQ== dependencies: - "@microsoft/node-core-library" "3.18.0" - "@microsoft/tsdoc" "0.12.14" - -"@microsoft/api-extractor@^7.5.0": - version "7.7.0" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.7.0.tgz#1550a5b88ca927d57e9c9698356a2f9375c5984c" - integrity sha512-1ngy95VA1s7GTE+bkS7QoYTg/TZs54CdJ46uAhl6HlyDJut4p/aH46W70g2XQs9VniIymW1Qe6fqNmcQUx5CVg== - dependencies: - "@microsoft/api-extractor-model" "7.7.0" - "@microsoft/node-core-library" "3.18.0" - "@microsoft/ts-command-line" "4.3.5" + "@microsoft/api-extractor-model" "7.7.4" + "@microsoft/node-core-library" "3.19.0" + "@microsoft/ts-command-line" "4.3.9" "@microsoft/tsdoc" "0.12.14" colors "~1.2.1" lodash "~4.17.15" @@ -53,12 +45,12 @@ source-map "~0.6.1" typescript "~3.7.2" -"@microsoft/node-core-library@3.18.0": - version "3.18.0" - resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.18.0.tgz#9a9123354b3e067bb8a975ba791959ffee1322ed" - integrity sha512-VzzSHtcwgHVW1xbHqpngfn+OS1trAZ1Tw3XXBlMsEKe7Wz7FF2gLr0hZa6x9Pemk5pkd4tu4+GTSOJjCKGjrgg== +"@microsoft/node-core-library@3.19.0": + version "3.19.0" + resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.19.0.tgz#b868a38cdb1113f83ee96ad0e9fc24cb3d4c7883" + integrity sha512-ZcqNHT4ztzT3tw9jCn76TUNCXwJpgOd1UK2RB8Gll0U+chTam3bcsXHkNnR6edDfySKx1rIHRgHAHzkqdJwmlg== dependencies: - "@types/node" "8.10.54" + "@types/node" "10.17.13" colors "~1.2.1" fs-extra "~7.0.1" jju "~1.4.0" @@ -66,10 +58,10 @@ timsort "~0.3.0" z-schema "~3.18.3" -"@microsoft/ts-command-line@4.3.5": - version "4.3.5" - resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.5.tgz#78026d20244f39978d3397849ac8c40c0c2d4079" - integrity sha512-CN3j86apNOmllUmeJ0AyRfTYA2BP2xlnfgmnyp1HWLqcJmR/zLe/fk/+gohGnNt7o5/qHta3681LQhO2Yy3GFw== +"@microsoft/ts-command-line@4.3.9": + version "4.3.9" + resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.9.tgz#7d6eaccd98c77c3abf1ab93f6cc1abde397836bc" + integrity sha512-G7xXA8uz2bMmaAhbqU8oWl0Y68X7qEWbuAuTkhVHDCgr4wjrUTbyvJ3DXcnANGhVVx2BWGHWUsj/GzMgU4apQQ== dependencies: "@types/argparse" "1.0.33" argparse "~1.0.9" @@ -120,10 +112,10 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-12.7.5.tgz#e19436e7f8e9b4601005d73673b6dc4784ffcc2f" integrity sha512-9fq4jZVhPNW8r+UYKnxF1e2HkDWOWKM5bC2/7c9wPV835I0aOrVbS/Hw/pWPk2uKrNXQqg9Z959Kz+IYDd5p3w== -"@types/node@8.10.54": - version "8.10.54" - resolved "https://registry.yarnpkg.com/@types/node/-/node-8.10.54.tgz#1c88eb253ac1210f1a5876953fb70f7cc4928402" - integrity sha512-kaYyLYf6ICn6/isAyD4K1MyWWd5Q3JgH6bnMN089LUx88+s4W8GvK9Q6JMBVu5vsFFp7pMdSxdKmlBXwH/VFRg== +"@types/node@10.17.13": + version "10.17.13" + resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.13.tgz#ccebcdb990bd6139cd16e84c39dc2fb1023ca90c" + integrity sha512-pMCcqU2zT4TjqYFrWtYHKal7Sl30Ims6ulZ4UFXxI4xbtQqK/qqKwkDoBFCfooRqqmRu9vY3xaJRwxSh673aYg== "@types/resolve@0.0.8": version "0.0.8" @@ -132,10 +124,10 @@ dependencies: "@types/node" "*" -abab@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.1.tgz#3fa17797032b71410ec372e11668f4b4ffc86a82" - integrity sha512-1zSbbCuoIjafKZ3mblY5ikvAb0ODUbqBnFuUb7f6uLeQhhGJ0vEV4ntmtxKLT2WgXCO94E07BjunsIw1jOMPZw== +abab@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.3.tgz#623e2075e02eb2d3f2475e49f99c91846467907a" + integrity sha512-tsFzPpcttalNjFBCFMqsKYQcWxxen1pgJR56by//QwvJc4/OUS3kPOOttx2tSIfjsylB0pYu7f5D3K1RCxUnUg== acorn-globals@^4.3.2: version "4.3.4" @@ -192,6 +184,14 @@ ansi-styles@^3.2.0, ansi-styles@^3.2.1: dependencies: color-convert "^1.9.0" +anymatch@~3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.1.tgz#c55ecf02185e2469259399310c173ce31233b142" + integrity sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg== + dependencies: + normalize-path "^3.0.0" + picomatch "^2.0.4" + arg@^4.1.0: version "4.1.1" resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.1.tgz#485f8e7c390ce4c5f78257dbea80d4be11feda4c" @@ -221,15 +221,10 @@ assert-plus@1.0.0, assert-plus@^1.0.0: resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU= -async-call-rpc@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/async-call-rpc/-/async-call-rpc-1.0.0.tgz#a2dd6a192b353b717fdf0881da9c805c58e3cb44" - integrity sha512-J2bj2HfUPKJCf7i/Lgxjj51+L0xg5xzENK1zkH3xZhsg2PFj2rxwwIRhqSKvGW6z3d6ukjcQWHg/0UbtsuFD2g== - -async-limiter@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd" - integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ== +async-call-rpc@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/async-call-rpc/-/async-call-rpc-1.0.4.tgz#ded3ef0fac75d0ae90e0ac574adda1ffae4a5cc9" + integrity sha512-dsLSfuF+n1GmgsL5Y+uGCkd+/wYZtHObKPxUncEoJ05bb1Lk3wUlU4ppTXL5sBsRuIXPEUxEdb6w86d0u59udg== asynckit@^0.4.0: version "0.4.0" @@ -258,6 +253,11 @@ bcrypt-pbkdf@^1.0.0: dependencies: tweetnacl "^0.14.3" +binary-extensions@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.0.0.tgz#23c0df14f6a88077f5f986c0d167ec03c3d5537c" + integrity sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow== + brace-expansion@^1.1.7: version "1.1.11" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" @@ -266,6 +266,13 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" +braces@~3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" + integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== + dependencies: + fill-range "^7.0.1" + browser-process-hrtime@^0.1.2: version "0.1.3" resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-0.1.3.tgz#616f00faef1df7ec1b5bf9cfe2bdc3170f26c7b4" @@ -305,6 +312,21 @@ chalk@^2.0.1, chalk@^2.4.1: escape-string-regexp "^1.0.5" supports-color "^5.3.0" +chokidar@3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.3.0.tgz#12c0714668c55800f659e262d4962a97faf554a6" + integrity sha512-dGmKLDdT3Gdl7fBUe8XK+gAtGmzy5Fn0XkkWQuYxGIgWVPPse2CxFA5mtrlD0TOHaHjEUqkWNyP1XdHoJES/4A== + dependencies: + anymatch "~3.1.1" + braces "~3.0.2" + glob-parent "~5.1.0" + is-binary-path "~2.1.0" + is-glob "~4.0.1" + normalize-path "~3.0.0" + readdirp "~3.2.0" + optionalDependencies: + fsevents "~2.1.1" + cliui@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5" @@ -392,10 +414,10 @@ cross-spawn@^7.0.0: shebang-command "^1.2.0" which "^1.2.9" -cssom@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.4.1.tgz#b24111d236b6dbd00cdfacb5ab67a20473381fe3" - integrity sha512-6Aajq0XmukE7HdXUU6IoSWuH1H6gH9z6qmagsstTiN7cW2FNTsb+J2Chs+ufPgZCsV/yo8oaEudQLrb9dGxSVQ== +cssom@^0.4.4: + version "0.4.4" + resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.4.4.tgz#5a66cf93d2d0b661d80bf6a44fb65f5c2e4e0a10" + integrity sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw== cssom@~0.3.6: version "0.3.8" @@ -421,14 +443,14 @@ dashdash@^1.12.0: dependencies: assert-plus "^1.0.0" -data-urls@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-1.1.0.tgz#15ee0582baa5e22bb59c77140da8f9c76963bbfe" - integrity sha512-YTWYI9se1P55u58gL5GkQHW4P6VJBJ5iBT+B5a7i2Tjadhv52paJG0qHX4A0OR6/t52odI64KP2YvFpkDOi3eQ== +data-urls@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-2.0.0.tgz#156485a72963a970f5d5821aaf642bef2bf2db9b" + integrity sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ== dependencies: - abab "^2.0.0" - whatwg-mimetype "^2.2.0" - whatwg-url "^7.0.0" + abab "^2.0.3" + whatwg-mimetype "^2.3.0" + whatwg-url "^8.0.0" debug@3.2.6: version "3.2.6" @@ -442,6 +464,11 @@ decamelize@^1.2.0: resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= +decimal.js@^10.2.0: + version "10.2.0" + resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.2.0.tgz#39466113a9e036111d02f82489b5fd6b0b5ed231" + integrity sha512-vDPw+rDgn3bZe1+F/pyEwb1oMG2XTlRVgAa6B4KccTEpYgF8w6eQllVbQcfIJnZyvzFtFpxnpGtx8dd7DJp/Rw== + deep-is@~0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" @@ -469,12 +496,12 @@ diff@^4.0.1: resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.1.tgz#0c667cb467ebbb5cea7f14f135cc2dba7780a8ff" integrity sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q== -domexception@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" - integrity sha512-raigMkn7CJNNo6Ihro1fzG7wr3fHuYVytzquZKX5n0yizGsTcYgzdIUwj1X9pK0VvjeihV+XiclP+DjwbsSKug== +domexception@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/domexception/-/domexception-2.0.1.tgz#fb44aefba793e1574b0af6aed2801d057529f304" + integrity sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg== dependencies: - webidl-conversions "^4.0.2" + webidl-conversions "^5.0.0" ecc-jsbn@~0.1.1: version "0.1.2" @@ -526,24 +553,19 @@ escape-string-regexp@1.0.5, escape-string-regexp@^1.0.5: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= -escodegen@^1.11.1: - version "1.12.0" - resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.12.0.tgz#f763daf840af172bb3a2b6dd7219c0e17f7ff541" - integrity sha512-TuA+EhsanGcme5T3R0L80u4t8CpbXQjegRmf7+FPTJrtCTErXFeelblRgHQa1FofEzqYYJmJ/OqjTwREp9qgmg== +escodegen@^1.12.1: + version "1.13.0" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.13.0.tgz#c7adf9bd3f3cc675bb752f202f79a720189cab29" + integrity sha512-eYk2dCkxR07DsHA/X2hRBj0CFAZeri/LyDMc0C8JT1Hqi6JnVpMhJ7XFITbb0+yZS3lVkaPL2oCkZ3AVmeVbMw== dependencies: - esprima "^3.1.3" + esprima "^4.0.1" estraverse "^4.2.0" esutils "^2.0.2" optionator "^0.8.1" optionalDependencies: source-map "~0.6.1" -esprima@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" - integrity sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM= - -esprima@^4.0.0: +esprima@^4.0.0, esprima@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== @@ -593,6 +615,13 @@ fast-levenshtein@~2.0.4: resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= +fill-range@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" + integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== + dependencies: + to-regex-range "^5.0.1" + find-cache-dir@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.0.0.tgz#cd4b7dd97b7185b7e17dbfe2d6e4115ee3eeb8fc" @@ -661,6 +690,11 @@ fs.realpath@^1.0.0: resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= +fsevents@~2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.2.tgz#4c0a1fb34bc68e543b4b82a9ec392bfbda840805" + integrity sha512-R4wDiBwZ0KzpgOWetKDug1FZcYhqYnUYKtfZYt4mD5SBz76q0KR4Q9o7GIPamsVPGmW3EYPPJ0dOOjvx32ldZA== + function-bind@^1.0.2, function-bind@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" @@ -678,6 +712,13 @@ getpass@^0.1.1: dependencies: assert-plus "^1.0.0" +glob-parent@~5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.0.tgz#5f4c1d1e748d30cd73ad2944b3577a81b081e8c2" + integrity sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw== + dependencies: + is-glob "^4.0.1" + glob@7.1.3: version "7.1.3" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.3.tgz#3960832d3f1574108342dafd3a67b332c0969df1" @@ -752,12 +793,12 @@ hosted-git-info@^2.1.4: resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.4.tgz#44119abaf4bc64692a16ace34700fed9c03e2546" integrity sha512-pzXIvANXEFrc5oFFXRMkbLPQ2rXRoDERwDLyrcUxGhaZhgP54BBSl9Oheh7Vv0T090cszWBxPjkQQ5Sq1PbBRQ== -html-encoding-sniffer@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz#e70d84b94da53aa375e11fe3a351be6642ca46f8" - integrity sha512-71lZziiDnsuabfdYiUeWdCVyKuqwWi23L8YeIgV9jSSZHCtb6wB1BKWooH7L3tn4/FuZJMVWyNaIDr4RGmaSYw== +html-encoding-sniffer@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-2.0.0.tgz#70b3b69bb5999f35d0d4495d79079f35630e71ae" + integrity sha512-Y9prnPKkM7FXxQevZ5UH8Z6aVTY0ede1tHquck5UxGmKWDshxXh95gSa2xXYjS8AsGO5iOvrCI5+GttRKnLdNA== dependencies: - whatwg-encoding "^1.0.1" + whatwg-encoding "^1.0.5" http-signature@~1.2.0: version "1.2.0" @@ -798,6 +839,13 @@ is-arrayish@^0.2.1: resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= +is-binary-path@~2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" + integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== + dependencies: + binary-extensions "^2.0.0" + is-buffer@~2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.3.tgz#4ecf3fcf749cbd1e472689e109ac66261a25e725" @@ -813,16 +861,33 @@ is-date-object@^1.0.1: resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16" integrity sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY= +is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= + is-fullwidth-code-point@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= +is-glob@^4.0.1, is-glob@~4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" + integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg== + dependencies: + is-extglob "^2.1.1" + is-module@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-module/-/is-module-1.0.0.tgz#3258fb69f78c14d5b815d664336b4cffb6441591" integrity sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE= +is-number@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" + integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== + is-reference@^1.1.2: version "1.1.3" resolved "https://registry.yarnpkg.com/is-reference/-/is-reference-1.1.3.tgz#e99059204b66fdbe09305cfca715a29caa5c8a51" @@ -882,36 +947,37 @@ jsdom-global@^3.0.2: resolved "https://registry.yarnpkg.com/jsdom-global/-/jsdom-global-3.0.2.tgz#6bd299c13b0c4626b2da2c0393cd4385d606acb9" integrity sha1-a9KZwTsMRiay2iwDk81DhdYGrLk= -jsdom@^15.2.0: - version "15.2.1" - resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-15.2.1.tgz#d2feb1aef7183f86be521b8c6833ff5296d07ec5" - integrity sha512-fAl1W0/7T2G5vURSyxBzrJ1LSdQn6Tr5UX/xD4PXDx/PDgwygedfW6El/KIj3xJ7FU61TTYnc/l/B7P49Eqt6g== +jsdom@^16.0.0: + version "16.0.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.0.0.tgz#da67380ffd869ff5832558da7e60a32058079e01" + integrity sha512-zYGVgSyf/Y/e3fOJICIyEgtTMV3lyYlsokXa7U0GWMzYKT2kN6iyBQLGbuLD+0/OLC2bnGGB4DuWtZSG2o7Gqw== dependencies: - abab "^2.0.0" + abab "^2.0.3" acorn "^7.1.0" acorn-globals "^4.3.2" array-equal "^1.0.0" - cssom "^0.4.1" + cssom "^0.4.4" cssstyle "^2.0.0" - data-urls "^1.1.0" - domexception "^1.0.1" - escodegen "^1.11.1" - html-encoding-sniffer "^1.0.2" + data-urls "^2.0.0" + decimal.js "^10.2.0" + domexception "^2.0.1" + escodegen "^1.12.1" + html-encoding-sniffer "^2.0.0" nwsapi "^2.2.0" - parse5 "5.1.0" + parse5 "5.1.1" pn "^1.1.0" request "^2.88.0" - request-promise-native "^1.0.7" - saxes "^3.1.9" + request-promise-native "^1.0.8" + saxes "^4.0.2" symbol-tree "^3.2.2" tough-cookie "^3.0.1" w3c-hr-time "^1.0.1" - w3c-xmlserializer "^1.1.2" - webidl-conversions "^4.0.2" + w3c-xmlserializer "^2.0.0" + webidl-conversions "^5.0.0" whatwg-encoding "^1.0.5" whatwg-mimetype "^2.3.0" - whatwg-url "^7.0.0" - ws "^7.0.0" + whatwg-url "^8.0.0" + ws "^7.2.1" xml-name-validator "^3.0.0" json-parse-better-errors@^1.0.1: @@ -1011,7 +1077,7 @@ lodash.sortby@^4.7.0: resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" integrity sha1-7dFMgk4sycHgsKG0K7UhBRakJDg= -lodash@^4.17.11, lodash@^4.17.15, lodash@~4.17.15: +lodash@^4.17.15, lodash@~4.17.15: version "4.17.15" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== @@ -1095,13 +1161,14 @@ mkdirp@0.5.1: dependencies: minimist "0.0.8" -mocha@^6.2.1: - version "6.2.2" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-6.2.2.tgz#5d8987e28940caf8957a7d7664b910dc5b2fea20" - integrity sha512-FgDS9Re79yU1xz5d+C4rv1G7QagNGHZ+iXF81hO8zY35YZZcLEsJVfFolfsqKFWunATEvNzMK0r/CwWd/szO9A== +mocha@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-7.0.0.tgz#c60d14bf3de9601f549b3ff5be657eb8381c54bf" + integrity sha512-CirsOPbO3jU86YKjjMzFLcXIb5YiGLUrjrXFHoJ3e2z9vWiaZVCZQ2+gtRGMPWF+nFhN6AWwLM/juzAQ6KRkbA== dependencies: ansi-colors "3.2.3" browser-stdout "1.3.1" + chokidar "3.3.0" debug "3.2.6" diff "3.5.0" escape-string-regexp "1.0.5" @@ -1114,7 +1181,7 @@ mocha@^6.2.1: minimatch "3.0.4" mkdirp "0.5.1" ms "2.1.1" - node-environment-flags "1.0.5" + node-environment-flags "1.0.6" object.assign "4.1.0" strip-json-comments "2.0.1" supports-color "6.0.0" @@ -1146,10 +1213,10 @@ nice-try@^1.0.4: resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== -node-environment-flags@1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/node-environment-flags/-/node-environment-flags-1.0.5.tgz#fa930275f5bf5dae188d6192b24b4c8bbac3d76a" - integrity sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ== +node-environment-flags@1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/node-environment-flags/-/node-environment-flags-1.0.6.tgz#a30ac13621f6f7d674260a54dede048c3982c088" + integrity sha512-5Evy2epuL+6TM0lCQGpFIj6KwiEsGh1SrHUhTbNX+sLbBtjidPZFAnVK9y5yU1+h//RitLbRHTIMyxQPtxMdHw== dependencies: object.getownpropertydescriptors "^2.0.3" semver "^5.7.0" @@ -1164,6 +1231,11 @@ normalize-package-data@^2.3.2: semver "2 || 3 || 4 || 5" validate-npm-package-license "^3.0.1" +normalize-path@^3.0.0, normalize-path@~3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" + integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== + npm-run-all@^4.1.5: version "4.1.5" resolved "https://registry.yarnpkg.com/npm-run-all/-/npm-run-all-4.1.5.tgz#04476202a15ee0e2e214080861bff12a51d98fba" @@ -1270,10 +1342,10 @@ parse-json@^4.0.0: error-ex "^1.3.1" json-parse-better-errors "^1.0.1" -parse5@5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/parse5/-/parse5-5.1.0.tgz#c59341c9723f414c452975564c7c00a68d58acd2" - integrity sha512-fxNG2sQjHvlVAYmzBZS9YlDp6PTSSDwa98vkD4QgVDDCAo84z5X1t5XyJQ62ImdLXx5NdIIfihey6xpum9/gRQ== +parse5@5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-5.1.1.tgz#f68e4e5ba1852ac2cadc00f4555fff6c2abb6178" + integrity sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug== path-exists@^3.0.0: version "3.0.0" @@ -1317,6 +1389,11 @@ performance-now@^2.1.0: resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= +picomatch@^2.0.4: + version "2.2.1" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.1.tgz#21bac888b6ed8601f831ce7816e335bc779f0a4a" + integrity sha512-ISBaA8xQNmwELC7eOjqFKMESB2VIqt4PPDD0nsS95b/9dZXvVKOlz9keMSnoGGKcOHXfTvDD6WMaRoSc9UuhRA== + pidtree@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/pidtree/-/pidtree-0.3.0.tgz#f6fada10fccc9f99bf50e90d0b23d72c9ebc2e6b" @@ -1373,24 +1450,31 @@ read-pkg@^3.0.0: normalize-package-data "^2.3.2" path-type "^3.0.0" +readdirp@~3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.2.0.tgz#c30c33352b12c96dfb4b895421a49fd5a9593839" + integrity sha512-crk4Qu3pmXwgxdSgGhgA/eXiJAPQiX4GMOZZMXnqKxHX7TaoL+3gQVo/WeuAiogr07DpnfjIMpXXa+PAIvwPGQ== + dependencies: + picomatch "^2.0.4" + regenerator-runtime@^0.13.2: version "0.13.3" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz#7cf6a77d8f5c6f60eb73c5fc1955b2ceb01e6bf5" integrity sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw== -request-promise-core@1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.2.tgz#339f6aababcafdb31c799ff158700336301d3346" - integrity sha512-UHYyq1MO8GsefGEt7EprS8UrXsm1TxEvFUX1IMTuSLU2Rh7fTIdFtl8xD7JiEYiWU2dl+NYAjCTksTehQUxPag== +request-promise-core@1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.3.tgz#e9a3c081b51380dfea677336061fea879a829ee9" + integrity sha512-QIs2+ArIGQVp5ZYbWD5ZLCY29D5CfWizP8eWnm8FoGD1TX61veauETVQbrV60662V0oFBkrDOuaBI8XgtuyYAQ== dependencies: - lodash "^4.17.11" + lodash "^4.17.15" -request-promise-native@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.7.tgz#a49868a624bdea5069f1251d0a836e0d89aa2c59" - integrity sha512-rIMnbBdgNViL37nZ1b3L/VfPOpSi0TqVDQPAvO6U14lMzOLrt5nilxCQqtDKhZeDiW0/hkCXGoQjhgJd/tCh6w== +request-promise-native@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.8.tgz#a455b960b826e44e2bf8999af64dff2bfe58cb36" + integrity sha512-dapwLGqkHtwL5AEbfenuzjTYg35Jd6KPytsC2/TLkVMz8rm+tNt72MGUWT1RP/aYawMpN6HqbNGBQaRcBtjQMQ== dependencies: - request-promise-core "1.1.2" + request-promise-core "1.1.3" stealthy-require "^1.1.1" tough-cookie "^2.3.3" @@ -1498,10 +1582,10 @@ rollup-pluginutils@^2.6.0, rollup-pluginutils@^2.8.1: dependencies: estree-walker "^0.6.1" -rollup@^1.23.1: - version "1.27.14" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.27.14.tgz#940718d5eec1a6887e399aa0089944bae5c4f377" - integrity sha512-DuDjEyn8Y79ALYXMt+nH/EI58L5pEw5HU9K38xXdRnxQhvzUTI/nxAawhkAHUQeudANQ//8iyrhVRHJBuR6DSQ== +rollup@^1.29.0: + version "1.29.0" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.29.0.tgz#6a1a79eea43ca9d3d79a90c15a1ceecedc72097b" + integrity sha512-V63Iz0dSdI5qPPN5HmCN6OBRzBFhMqNWcvwgq863JtSCTU6Vdvqq6S2fYle/dSCyoPrBkIP3EIr1RVs3HTRqqg== dependencies: "@types/estree" "*" "@types/node" "*" @@ -1517,12 +1601,12 @@ safe-buffer@^5.0.1, safe-buffer@^5.1.2: resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== -saxes@^3.1.9: - version "3.1.11" - resolved "https://registry.yarnpkg.com/saxes/-/saxes-3.1.11.tgz#d59d1fd332ec92ad98a2e0b2ee644702384b1c5b" - integrity sha512-Ydydq3zC+WYDJK1+gRxRapLIED9PWeSuuS41wqyoRmzvhhh9nc+QQrVMKJYzJFULazeGhzSV0QleN2wD3boh2g== +saxes@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/saxes/-/saxes-4.0.2.tgz#76f8e762efc96ec4af5f885d8151c50426103165" + integrity sha512-EZOTeQ4bgkOaGCDaTKux+LaRNcLNbdbvMH7R3/yjEEULPEmqvkFbFub6DJhJTub2iGMT93CfpZ5LTdKZmAbVeQ== dependencies: - xmlchars "^2.1.1" + xmlchars "^2.2.0" "semver@2 || 3 || 4 || 5", semver@^5.5.0, semver@^5.7.0: version "5.7.1" @@ -1720,6 +1804,13 @@ timsort@~0.3.0: resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4" integrity sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q= +to-regex-range@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" + integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== + dependencies: + is-number "^7.0.0" + tough-cookie@^2.3.3: version "2.5.0" resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" @@ -1745,23 +1836,23 @@ tough-cookie@~2.4.3: psl "^1.1.24" punycode "^1.4.1" -tr46@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" - integrity sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk= +tr46@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-2.0.0.tgz#a85da3f8511231357b347caa686abb3dfb150634" + integrity sha512-LrErSqfhdUw73AC/eXV2fEmNkvgSYxfm5lvxnLvuVgoVDknvD28Pa5FeDGc8RuVouDxUD3GnHHFv7xnBp7As5w== dependencies: - punycode "^2.1.0" + punycode "^2.1.1" -ts-node@^8.4.1: - version "8.5.4" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-8.5.4.tgz#a152add11fa19c221d0b48962c210cf467262ab2" - integrity sha512-izbVCRV68EasEPQ8MSIGBNK9dc/4sYJJKYA+IarMQct1RtEot6Xp0bXuClsbUSnKpg50ho+aOAx8en5c+y4OFw== +ts-node@^8.6.2: + version "8.6.2" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-8.6.2.tgz#7419a01391a818fbafa6f826a33c1a13e9464e35" + integrity sha512-4mZEbofxGqLL2RImpe3zMJukvEvcO1XP8bj8ozBPySdCUXEcU5cIRwR0aM3R+VoZq7iXc8N86NC0FspGRqP4gg== dependencies: arg "^4.1.0" diff "^4.0.1" make-error "^1.1.1" source-map-support "^0.5.6" - yn "^3.0.0" + yn "3.1.1" tslib@1.10.0: version "1.10.0" @@ -1787,7 +1878,12 @@ type-check@~0.3.2: dependencies: prelude-ls "~1.1.2" -typescript@^3.6.4, typescript@~3.7.2: +typescript@^3.7.5: + version "3.7.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.5.tgz#0692e21f65fd4108b9330238aac11dd2e177a1ae" + integrity sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw== + +typescript@~3.7.2: version "3.7.4" resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.4.tgz#1743a5ec5fef6a1fa9f3e4708e33c81c73876c19" integrity sha512-A25xv5XCtarLwXpcDNZzCGvW2D1S3/bACratYBx2sax8PefsFhlYmkQicKHvpYflFS8if4zne5zT5kpJ7pzuvw== @@ -1838,13 +1934,11 @@ w3c-hr-time@^1.0.1: dependencies: browser-process-hrtime "^0.1.2" -w3c-xmlserializer@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-1.1.2.tgz#30485ca7d70a6fd052420a3d12fd90e6339ce794" - integrity sha512-p10l/ayESzrBMYWRID6xbuCKh2Fp77+sA0doRuGn4tTIMrrZVeqfpKjXHY+oDh3K4nLdPgNwMTVP6Vp4pvqbNg== +w3c-xmlserializer@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz#3e7104a05b75146cc60f564380b7f683acf1020a" + integrity sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA== dependencies: - domexception "^1.0.1" - webidl-conversions "^4.0.2" xml-name-validator "^3.0.0" web-ext-types@^3.2.1: @@ -1852,31 +1946,31 @@ web-ext-types@^3.2.1: resolved "https://registry.yarnpkg.com/web-ext-types/-/web-ext-types-3.2.1.tgz#3edc0e3c2e8fe121d7d7e4ca0b7ee0c883cea832" integrity sha512-oQZYDU3W8X867h8Jmt3129kRVKklz70db40Y6OzoTTuzOJpF/dB2KULJUf0txVPyUUXuyzV8GmT3nVvRHoG+Ew== -webidl-conversions@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" - integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg== +webidl-conversions@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-5.0.0.tgz#ae59c8a00b121543a2acc65c0434f57b0fc11aff" + integrity sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA== -whatwg-encoding@^1.0.1, whatwg-encoding@^1.0.5: +whatwg-encoding@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz#5abacf777c32166a51d085d6b4f3e7d27113ddb0" integrity sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw== dependencies: iconv-lite "0.4.24" -whatwg-mimetype@^2.2.0, whatwg-mimetype@^2.3.0: +whatwg-mimetype@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== -whatwg-url@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.0.0.tgz#fde926fa54a599f3adf82dff25a9f7be02dc6edd" - integrity sha512-37GeVSIJ3kn1JgKyjiYNmSLP1yzbpb29jdmwBSgkD9h40/hyrR/OifpVUndji3tmwGgD8qpw7iQu3RSbCrBpsQ== +whatwg-url@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.0.0.tgz#37f256cb746398e19b107bd6ef820b4ae2d15871" + integrity sha512-41ou2Dugpij8/LPO5Pq64K5q++MnRCBpEHvQr26/mArEKTkCV5aoXIqyhuYtE0pkqScXwhf2JP57rkRTYM29lQ== dependencies: lodash.sortby "^4.7.0" - tr46 "^1.0.1" - webidl-conversions "^4.0.2" + tr46 "^2.0.0" + webidl-conversions "^5.0.0" which-module@^2.0.0: version "2.0.0" @@ -1916,19 +2010,17 @@ wrappy@1: resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= -ws@^7.0.0: - version "7.1.2" - resolved "https://registry.yarnpkg.com/ws/-/ws-7.1.2.tgz#c672d1629de8bb27a9699eb599be47aeeedd8f73" - integrity sha512-gftXq3XI81cJCgkUiAVixA0raD9IVmXqsylCrjRygw4+UOOGzPoxnQ6r/CnVL9i+mDncJo94tSkyrtuuQVBmrg== - dependencies: - async-limiter "^1.0.0" +ws@^7.2.1: + version "7.2.1" + resolved "https://registry.yarnpkg.com/ws/-/ws-7.2.1.tgz#03ed52423cd744084b2cf42ed197c8b65a936b8e" + integrity sha512-sucePNSafamSKoOqoNfBd8V0StlkzJKL2ZAhGQinCfNQ+oacw+Pk7lcdAElecBF2VkLNZRiIb5Oi1Q5lVUVt2A== xml-name-validator@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== -xmlchars@^2.1.1: +xmlchars@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== @@ -1971,7 +2063,7 @@ yargs@13.3.0, yargs@^13.3.0: y18n "^4.0.0" yargs-parser "^13.1.1" -yn@^3.0.0: +yn@3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== From 46b73ba5047f4b8de52e2c39727a32a9516855a7 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2020 11:23:44 +0000 Subject: [PATCH 59/80] chore(deps-dev): bump jsdom from 16.0.0 to 16.0.1 Bumps [jsdom](https://github.com/jsdom/jsdom) from 16.0.0 to 16.0.1. - [Release notes](https://github.com/jsdom/jsdom/releases) - [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md) - [Commits](https://github.com/jsdom/jsdom/compare/16.0.0...16.0.1) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/yarn.lock b/yarn.lock index 28e0bf7..278be1f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -204,11 +204,6 @@ argparse@^1.0.7, argparse@~1.0.9: dependencies: sprintf-js "~1.0.2" -array-equal@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" - integrity sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM= - asn1@~0.2.3: version "0.2.4" resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" @@ -948,14 +943,13 @@ jsdom-global@^3.0.2: integrity sha1-a9KZwTsMRiay2iwDk81DhdYGrLk= jsdom@^16.0.0: - version "16.0.0" - resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.0.0.tgz#da67380ffd869ff5832558da7e60a32058079e01" - integrity sha512-zYGVgSyf/Y/e3fOJICIyEgtTMV3lyYlsokXa7U0GWMzYKT2kN6iyBQLGbuLD+0/OLC2bnGGB4DuWtZSG2o7Gqw== + version "16.0.1" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.0.1.tgz#5a5214cf69609531bf6fa5b6322fdd90ceed5bf7" + integrity sha512-wKJe/APzq+ak9i+2ybWE20lDIhF9AkGKSZf8UsjPN39acatFB6oA7K397kQvHVikds0yQono2h6J7UjbPtPOWw== dependencies: abab "^2.0.3" acorn "^7.1.0" acorn-globals "^4.3.2" - array-equal "^1.0.0" cssom "^0.4.4" cssstyle "^2.0.0" data-urls "^2.0.0" @@ -965,7 +959,6 @@ jsdom@^16.0.0: html-encoding-sniffer "^2.0.0" nwsapi "^2.2.0" parse5 "5.1.1" - pn "^1.1.0" request "^2.88.0" request-promise-native "^1.0.8" saxes "^4.0.2" @@ -1411,11 +1404,6 @@ pkg-dir@^4.1.0: dependencies: find-up "^4.0.0" -pn@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb" - integrity sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA== - prelude-ls@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" From d1d034326f9fdc3b6a71bce354379abce2755c82 Mon Sep 17 00:00:00 2001 From: Jack Works Date: Thu, 6 Feb 2020 14:59:25 +0800 Subject: [PATCH 60/80] feat!: change message center --- .../kit.messagecenter._constructor_.md | 3 +- api-documents/kit.messagecenter.emit.md | 3 +- api-documents/kit.messagecenter.md | 7 +- api-documents/kit.messagecenter.send.md | 24 ------- .../kit.messagecenter.writetoconsole.md | 15 +++- doc/holoflows-kit.api.report.md | 7 +- src/Extension/AutomatedTabTask.ts | 2 +- src/Extension/MessageCenter.ts | 69 +++++++------------ 8 files changed, 47 insertions(+), 83 deletions(-) delete mode 100644 api-documents/kit.messagecenter.send.md diff --git a/api-documents/kit.messagecenter._constructor_.md b/api-documents/kit.messagecenter._constructor_.md index 2661be8..e828fb7 100644 --- a/api-documents/kit.messagecenter._constructor_.md +++ b/api-documents/kit.messagecenter._constructor_.md @@ -9,12 +9,13 @@ Constructs a new instance of the `MessageCenter` class Signature: ```typescript -constructor(instanceKey?: string); +constructor(sendToSelf: boolean, instanceKey?: string); ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | +| sendToSelf | boolean | If this MessageCenter will send message to this instance itself | | instanceKey | string | Use this instanceKey to distinguish your messages and others. This option cannot make your message safe! | diff --git a/api-documents/kit.messagecenter.emit.md b/api-documents/kit.messagecenter.emit.md index fff55d6..764f75d 100644 --- a/api-documents/kit.messagecenter.emit.md +++ b/api-documents/kit.messagecenter.emit.md @@ -9,7 +9,7 @@ Send message to local or other instance of extension Signature: ```typescript -emit(key: Key, data: ITypedMessages[Key], alsoSendToDocument?: boolean): Promise; +emit(key: Key, data: ITypedMessages[Key]): Promise; ``` ## Parameters @@ -18,7 +18,6 @@ emit(key: Key, data: ITypedMessages[Key], also | --- | --- | --- | | key | Key | Key of the message | | data | ITypedMessages[Key] | Data of the message | -| alsoSendToDocument | boolean | ! Send message to document. This may leaks secret! Only open in localhost! | Returns: diff --git a/api-documents/kit.messagecenter.md b/api-documents/kit.messagecenter.md index 28d3360..682c16a 100644 --- a/api-documents/kit.messagecenter.md +++ b/api-documents/kit.messagecenter.md @@ -16,21 +16,20 @@ export declare class MessageCenter | Constructor | Modifiers | Description | | --- | --- | --- | -| [(constructor)(instanceKey)](./kit.messagecenter._constructor_.md) | | Constructs a new instance of the MessageCenter class | +| [(constructor)(sendToSelf, instanceKey)](./kit.messagecenter._constructor_.md) | | Constructs a new instance of the MessageCenter class | ## Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [serialization](./kit.messagecenter.serialization.md) | | Serialization | How should MessageCenter serialization the message | -| [writeToConsole](./kit.messagecenter.writetoconsole.md) | | boolean | Should MessageCenter prints all messages to console? | ## Methods | Method | Modifiers | Description | | --- | --- | --- | -| [emit(key, data, alsoSendToDocument)](./kit.messagecenter.emit.md) | | Send message to local or other instance of extension | +| [emit(key, data)](./kit.messagecenter.emit.md) | | Send message to local or other instance of extension | | [off(event, handler)](./kit.messagecenter.off.md) | | Remove the listener of an event | | [on(event, handler)](./kit.messagecenter.on.md) | | Listen to an event | -| [send(args)](./kit.messagecenter.send.md) | | Send message to local or other instance of extension | +| [writeToConsole(on)](./kit.messagecenter.writetoconsole.md) | | Should MessageCenter prints all messages to console? | diff --git a/api-documents/kit.messagecenter.send.md b/api-documents/kit.messagecenter.send.md deleted file mode 100644 index e6f17e1..0000000 --- a/api-documents/kit.messagecenter.send.md +++ /dev/null @@ -1,24 +0,0 @@ - - -[Home](./index.md) > [@holoflows/kit](./kit.md) > [MessageCenter](./kit.messagecenter.md) > [send](./kit.messagecenter.send.md) - -## MessageCenter.send() method - -Send message to local or other instance of extension - -Signature: - -```typescript -send(...args: Parameters['emit']>): ReturnType['emit']>; -``` - -## Parameters - -| Parameter | Type | Description | -| --- | --- | --- | -| args | Parameters<MessageCenter<ITypedMessages>['emit']> | | - -Returns: - -`ReturnType['emit']>` - diff --git a/api-documents/kit.messagecenter.writetoconsole.md b/api-documents/kit.messagecenter.writetoconsole.md index 63a609a..390602d 100644 --- a/api-documents/kit.messagecenter.writetoconsole.md +++ b/api-documents/kit.messagecenter.writetoconsole.md @@ -2,12 +2,23 @@ [Home](./index.md) > [@holoflows/kit](./kit.md) > [MessageCenter](./kit.messagecenter.md) > [writeToConsole](./kit.messagecenter.writetoconsole.md) -## MessageCenter.writeToConsole property +## MessageCenter.writeToConsole() method Should MessageCenter prints all messages to console? Signature: ```typescript -writeToConsole: boolean; +writeToConsole(on: boolean): this; ``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| on | boolean | | + +Returns: + +`this` + diff --git a/doc/holoflows-kit.api.report.md b/doc/holoflows-kit.api.report.md index b4c38e0..ab0fd7d 100644 --- a/doc/holoflows-kit.api.report.md +++ b/doc/holoflows-kit.api.report.md @@ -132,13 +132,12 @@ export class LiveSelector { // @public export class MessageCenter { - constructor(instanceKey?: string); - emit(key: Key, data: ITypedMessages[Key], alsoSendToDocument?: boolean): Promise; + constructor(sendToSelf: boolean, instanceKey?: string); + emit(key: Key, data: ITypedMessages[Key]): Promise; off(event: Key, handler: (data: ITypedMessages[Key]) => void): void; on(event: Key, handler: (data: ITypedMessages[Key]) => void): () => void; - send(...args: Parameters['emit']>): ReturnType['emit']>; serialization: Serialization; - writeToConsole: boolean; + writeToConsole(on: boolean): this; } // @public diff --git a/src/Extension/AutomatedTabTask.ts b/src/Extension/AutomatedTabTask.ts index 30f32bd..3d4b8a2 100644 --- a/src/Extension/AutomatedTabTask.ts +++ b/src/Extension/AutomatedTabTask.ts @@ -139,7 +139,7 @@ export function AutomatedTabTask Pr } const AsyncCallKey = AsyncCallOptions.key const REGISTER = AsyncCallKey + ':ping' - const finalAsyncCallOptions = { messageChannel: new MessageCenter(), ...AsyncCallOptions } + const finalAsyncCallOptions = { messageChannel: new MessageCenter(false), ...AsyncCallOptions } if (GetContext() === 'content') { // If run in content script // Register this tab diff --git a/src/Extension/MessageCenter.ts b/src/Extension/MessageCenter.ts index 647854f..ecbad17 100644 --- a/src/Extension/MessageCenter.ts +++ b/src/Extension/MessageCenter.ts @@ -16,12 +16,10 @@ export interface Serialization { deserialization(serialized: unknown): PromiseLike } type InternalMessageType = { - key: Key + key: string data: any instanceKey: string } -type Key = string | number | symbol -const MessageCenterEvent = 'Holoflows-Kit MessageCenter' const noop = () => {} /** * Send and receive messages in different contexts. @@ -33,13 +31,12 @@ export class MessageCenter { */ public serialization: Serialization = NoSerialization private eventEmitter = mitt() - private listener = async (request: InternalMessageType | Event) => { - let { key, data, instanceKey } = await this.serialization.deserialization( - (request as CustomEvent).detail || request, - ) + private listener = async (request: unknown) => { + let { key, data, instanceKey } = (await this.serialization.deserialization(request)) as InternalMessageType // Message is not for us if (this.instanceKey !== (instanceKey || '')) return - if (this.writeToConsole) { + if (!key || !data) return + if (this.log) { console.log( `%cReceive%c %c${key.toString()}`, 'background: rgba(0, 255, 255, 0.6); color: black; padding: 0px 6px; border-radius: 4px;', @@ -51,20 +48,18 @@ export class MessageCenter { this.eventEmitter.emit(key, data) } /** + * @param sendToSelf - If this MessageCenter will send message to this instance itself * @param instanceKey - Use this instanceKey to distinguish your messages and others. * This option cannot make your message safe! */ - constructor(private instanceKey = '') { - if (typeof browser !== 'undefined' && browser.runtime && browser.runtime.onMessage) { + constructor(private sendToSelf: boolean, private instanceKey = '') { + if (typeof browser !== 'undefined' && browser?.runtime?.onMessage) { // Fired when a message is sent from either an extension process (by runtime.sendMessage) // or a content script (by tabs.sendMessage). browser.runtime.onMessage.addListener((e: any) => { this.listener(e) }) } - if (typeof document !== 'undefined' && document.addEventListener) { - document.addEventListener(MessageCenterEvent, this.listener) - } } /** * Listen to an event @@ -88,14 +83,9 @@ export class MessageCenter { * Send message to local or other instance of extension * @param key - Key of the message * @param data - Data of the message - * @param alsoSendToDocument - ! Send message to document. This may leaks secret! Only open in localhost! */ - public async emit( - key: Key, - data: ITypedMessages[Key], - alsoSendToDocument = location.hostname === 'localhost', - ): Promise { - if (this.writeToConsole) { + public async emit(key: Key, data: ITypedMessages[Key]): Promise { + if (this.log) { console.log( `%cSend%c %c${key.toString()}`, 'background: rgba(0, 255, 255, 0.6); color: black; padding: 0px 6px; border-radius: 4px;', @@ -110,35 +100,24 @@ export class MessageCenter { instanceKey: this.instanceKey || '', } as InternalMessageType) if (typeof browser !== 'undefined') { - if (browser.runtime && browser.runtime.sendMessage) { - browser.runtime.sendMessage(serialized).catch(noop) - } - if (browser.tabs) { - // Send message to Content Script - browser.tabs.query({ discarded: false }).then(tabs => { - for (const tab of tabs) { - if (tab.id) browser.tabs.sendMessage(tab.id, serialized).catch(noop) - } - }) - } - } - if (alsoSendToDocument && typeof document !== 'undefined' && document.dispatchEvent) { - const event = new CustomEvent(MessageCenterEvent, { - detail: serialized, + browser.runtime?.sendMessage?.(serialized).catch(noop) + // Send message to Content Script + browser.tabs?.query({ discarded: false }).then(tabs => { + for (const tab of tabs) { + if (tab.id) browser.tabs.sendMessage(tab.id, serialized).catch(noop) + } }) - document.dispatchEvent(event) + } + if (this.sendToSelf) { + this.listener(serialized as InternalMessageType) } } - /** - * {@inheritdoc MessageCenter.emit} - */ - public send( - ...args: Parameters['emit']> - ): ReturnType['emit']> { - return Reflect.apply(this.emit, this, args) - } + private log = false /** * Should MessageCenter prints all messages to console? */ - writeToConsole = false + writeToConsole(on: boolean) { + this.log = on + return this + } } From cfe5af3826ee18cf9035cf6a3b72a68dee28af6d Mon Sep 17 00:00:00 2001 From: Jack Works Date: Thu, 6 Feb 2020 15:29:48 +0800 Subject: [PATCH 61/80] feat!: change signature of value ref --- api-documents/kit.valueref.isequal.md | 2 +- api-documents/kit.valueref.md | 2 +- doc/holoflows-kit.api.report.md | 2 +- src/util/ValueRef.ts | 8 ++++++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/api-documents/kit.valueref.isequal.md b/api-documents/kit.valueref.isequal.md index aabe0f7..dcdaaf5 100644 --- a/api-documents/kit.valueref.isequal.md +++ b/api-documents/kit.valueref.isequal.md @@ -7,5 +7,5 @@ Signature: ```typescript -isEqual: (a: T, b: T) => boolean; +isEqual: (a: unknown, b: unknown) => boolean; ``` diff --git a/api-documents/kit.valueref.md b/api-documents/kit.valueref.md index a595e0e..f898aa5 100644 --- a/api-documents/kit.valueref.md +++ b/api-documents/kit.valueref.md @@ -44,7 +44,7 @@ ref.value = 42 // useRef will receive the new value | Property | Modifiers | Type | Description | | --- | --- | --- | --- | -| [isEqual](./kit.valueref.isequal.md) | | (a: T, b: T) => boolean | | +| [isEqual](./kit.valueref.isequal.md) | | (a: unknown, b: unknown) => boolean | | | [value](./kit.valueref.value.md) | | T | Get current value | ## Methods diff --git a/doc/holoflows-kit.api.report.md b/doc/holoflows-kit.api.report.md index ab0fd7d..632090c 100644 --- a/doc/holoflows-kit.api.report.md +++ b/doc/holoflows-kit.api.report.md @@ -170,7 +170,7 @@ export class ValueRef { constructor(_value: T, isEqual?: (a: T, b: T) => boolean); addListener(fn: (newVal: T, oldVal: T) => void): () => void; // (undocumented) - isEqual: (a: T, b: T) => boolean; + isEqual: (a: unknown, b: unknown) => boolean; removeAllListener(): void; removeListener(fn: (newVal: T, oldVal: T) => void): void; get value(): T; diff --git a/src/util/ValueRef.ts b/src/util/ValueRef.ts index 857620d..26096c2 100644 --- a/src/util/ValueRef.ts +++ b/src/util/ValueRef.ts @@ -43,13 +43,17 @@ export class ValueRef { } } /** All watchers */ - private watcher = new Set<(newVal: T, oldVal: T) => void>() + private watcher = new Set<(newVal: any, oldVal: any) => void>() + // To keep the variant rule. + public isEqual: (a: unknown, b: unknown) => boolean /** * * @param _value - The internal value * @param isEqual - The comparer function */ - constructor(private _value: T, public isEqual: (a: T, b: T) => boolean = (a, b) => a === b) {} + constructor(private _value: T, isEqual: (a: T, b: T) => boolean = (a, b) => a === b) { + this.isEqual = isEqual as any + } /** * Add a listener. This will return a remover. * @example From 684467e4c70ccfb1c352ea9379c3031d243850f8 Mon Sep 17 00:00:00 2001 From: Jack Works Date: Thu, 6 Feb 2020 15:30:03 +0800 Subject: [PATCH 62/80] chore: upgrade deps --- package.json | 18 +++--- yarn.lock | 180 +++++++++++++++++++++++++++++++-------------------- 2 files changed, 118 insertions(+), 80 deletions(-) diff --git a/package.json b/package.json index d219a16..53ebeb0 100644 --- a/package.json +++ b/package.json @@ -33,18 +33,18 @@ "test": "cross-env TS_NODE_COMPILER_OPTIONS='{ \"module\": \"commonjs\" }' mocha -r ts-node/register/transpile-only -r source-map-support/register -r jsdom-global/register --recursive src/**/*.spec.ts" }, "devDependencies": { - "@microsoft/api-documenter": "^7.7.8", - "@microsoft/api-extractor": "^7.7.5", - "@rollup/plugin-replace": "^2.2.0", + "@microsoft/api-documenter": "^7.7.12", + "@microsoft/api-extractor": "^7.7.8", + "@rollup/plugin-replace": "^2.3.1", "@types/lodash-es": "^4.1.4", - "@types/mocha": "^5.2.7", - "cross-env": "^6.0.3", - "jsdom": "^16.0.0", + "@types/mocha": "^7.0.1", + "cross-env": "^7.0.0", + "jsdom": "^16.1.0", "jsdom-global": "^3.0.2", - "mocha": "^7.0.0", + "mocha": "^7.0.1", "npm-run-all": "^4.1.5", - "rimraf": "^3.0.0", - "rollup": "^1.29.0", + "rimraf": "^3.0.1", + "rollup": "^1.31.0", "rollup-plugin-commonjs": "^10.1.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-typescript2": "^0.25.2", diff --git a/yarn.lock b/yarn.lock index 278be1f..f8c07a5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9,35 +9,35 @@ dependencies: regenerator-runtime "^0.13.2" -"@microsoft/api-documenter@^7.7.8": - version "7.7.8" - resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.7.8.tgz#cb65c51a8f745aa353f6708102c8a3c56d3c57ef" - integrity sha512-NxUQ4ucJ1t9a65iEXvM+mSSCkhK47MXaA/ZBjOUdz5/DrdaVwlYwzyKgFaZ1eIzpmnwBVwCCxLhYRXaWonNuYw== - dependencies: - "@microsoft/api-extractor-model" "7.7.4" - "@microsoft/node-core-library" "3.19.0" - "@microsoft/ts-command-line" "4.3.9" +"@microsoft/api-documenter@^7.7.12": + version "7.7.12" + resolved "https://registry.yarnpkg.com/@microsoft/api-documenter/-/api-documenter-7.7.12.tgz#e355cd24caefbf831686b684c09918906894ff5c" + integrity sha512-FVd0c+DEz+HntBmtRsTTslVvBagx0FqGC+rzF8jnVDJbiW6xkwjwfTj/VKqNNdz821sEPp+eAJgGh7s0Nyx3Iw== + dependencies: + "@microsoft/api-extractor-model" "7.7.7" + "@microsoft/node-core-library" "3.19.3" + "@microsoft/ts-command-line" "4.3.10" "@microsoft/tsdoc" "0.12.14" colors "~1.2.1" js-yaml "~3.13.1" resolve "1.8.1" -"@microsoft/api-extractor-model@7.7.4": - version "7.7.4" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.7.4.tgz#45a1bd38499db5ae56dcecf1f68d4cf3c50a63ac" - integrity sha512-/UGBXzEwOAYAS9Xg9I9RF3f+Fp1dowddMlisUlBASGJT38/ZhlMb8Zp0Y0ThJcY+VA6Wya0cMK3c/Lo2u+f2EQ== +"@microsoft/api-extractor-model@7.7.7": + version "7.7.7" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.7.7.tgz#1d15eae7a19b72abbfca9053f200fe79b6f9d755" + integrity sha512-822kyHMEx2sl+KnBioEiFoTIXuz/4pYBo94nQ4AMqb9BFvY9I1AZUPtC4HFh2zcXQqpFLpKKC55s/o8UOze2wQ== dependencies: - "@microsoft/node-core-library" "3.19.0" + "@microsoft/node-core-library" "3.19.3" "@microsoft/tsdoc" "0.12.14" -"@microsoft/api-extractor@^7.7.5": - version "7.7.5" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.7.5.tgz#eeae706cb5a9b0e0ae1c3f2547520650de26b826" - integrity sha512-/tZkNOFRS27c/ZCsiTbVdTvD10b7UMCX2hlzqQGN5wMWyoblpQy0cZBuRrQBuRllkgXoXeiMpeTf8NcSSl+IjQ== +"@microsoft/api-extractor@^7.7.8": + version "7.7.8" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.7.8.tgz#19b0bca8a2113d4ded55a270266bc2b802de1a43" + integrity sha512-XNO6Dk6ByfJq24Cn1/j0B0F16ZtwYnEC/sxgB/M0wTphBdBlHjRXZmxofmjirBBj9f7vG4UJ18IOIZRLbhGFPw== dependencies: - "@microsoft/api-extractor-model" "7.7.4" - "@microsoft/node-core-library" "3.19.0" - "@microsoft/ts-command-line" "4.3.9" + "@microsoft/api-extractor-model" "7.7.7" + "@microsoft/node-core-library" "3.19.3" + "@microsoft/ts-command-line" "4.3.10" "@microsoft/tsdoc" "0.12.14" colors "~1.2.1" lodash "~4.17.15" @@ -45,10 +45,10 @@ source-map "~0.6.1" typescript "~3.7.2" -"@microsoft/node-core-library@3.19.0": - version "3.19.0" - resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.19.0.tgz#b868a38cdb1113f83ee96ad0e9fc24cb3d4c7883" - integrity sha512-ZcqNHT4ztzT3tw9jCn76TUNCXwJpgOd1UK2RB8Gll0U+chTam3bcsXHkNnR6edDfySKx1rIHRgHAHzkqdJwmlg== +"@microsoft/node-core-library@3.19.3": + version "3.19.3" + resolved "https://registry.yarnpkg.com/@microsoft/node-core-library/-/node-core-library-3.19.3.tgz#cf09ddb2905a29b32956d4a88f9d035a00637be9" + integrity sha512-rJ+hT6+XK5AESbhn31YBnHKpZSFKCmqHCRZyK9+jyWwav1HXv0qzuXnFvnyrO0MZyJ6rH0seWOZVWbU5KGv1tg== dependencies: "@types/node" "10.17.13" colors "~1.2.1" @@ -58,10 +58,10 @@ timsort "~0.3.0" z-schema "~3.18.3" -"@microsoft/ts-command-line@4.3.9": - version "4.3.9" - resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.9.tgz#7d6eaccd98c77c3abf1ab93f6cc1abde397836bc" - integrity sha512-G7xXA8uz2bMmaAhbqU8oWl0Y68X7qEWbuAuTkhVHDCgr4wjrUTbyvJ3DXcnANGhVVx2BWGHWUsj/GzMgU4apQQ== +"@microsoft/ts-command-line@4.3.10": + version "4.3.10" + resolved "https://registry.yarnpkg.com/@microsoft/ts-command-line/-/ts-command-line-4.3.10.tgz#fcb4f5ea43c93d17db6cc810bbee39ea32b2a86d" + integrity sha512-AgxArGqPt0H5WTo3fxNFP3Blm3obkCCopVG9kwIo+/mMdXaj6qMDn6+8Bv8+5Nke3CvvXpKAZtu3IaGY5cV1Hg== dependencies: "@types/argparse" "1.0.33" argparse "~1.0.9" @@ -72,13 +72,20 @@ resolved "https://registry.yarnpkg.com/@microsoft/tsdoc/-/tsdoc-0.12.14.tgz#0e0810a0a174e50e22dfe8edb30599840712f22d" integrity sha512-518yewjSga1jLdiLrcmpMFlaba5P+50b0TWNFUpC+SL9Yzf0kMi57qw+bMl+rQ08cGqH1vLx4eg9YFUbZXgZ0Q== -"@rollup/plugin-replace@^2.2.0": - version "2.3.0" - resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-2.3.0.tgz#86d88746383e40dd81cffb5216449cc51a734eb9" - integrity sha512-rzWAMqXAHC1w3eKpK6LxRqiF4f3qVFaa1sGii6Bp3rluKcwHNOpPt+hWRCmAH6SDEPtbPiLFf0pfNQyHs6Btlg== +"@rollup/plugin-replace@^2.3.1": + version "2.3.1" + resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-2.3.1.tgz#16fb0563628f9e6c6ef9e05d48d3608916d466f5" + integrity sha512-qDcXj2VOa5+j0iudjb+LiwZHvBRRgWbHPhRmo1qde2KItTjuxDVQO21rp9/jOlzKR5YO0EsgRQoyox7fnL7y/A== dependencies: - magic-string "^0.25.2" - rollup-pluginutils "^2.6.0" + "@rollup/pluginutils" "^3.0.4" + magic-string "^0.25.5" + +"@rollup/pluginutils@^3.0.4": + version "3.0.8" + resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-3.0.8.tgz#4e94d128d94b90699e517ef045422960d18c8fde" + integrity sha512-rYGeAc4sxcZ+kPG/Tw4/fwJODC3IXHYDH4qusdN/b6aLw5LPUbzpecYbEJh4sVQGPFJxd2dBU4kc1H3oy9/bnw== + dependencies: + estree-walker "^1.0.1" "@types/argparse@1.0.33": version "1.0.33" @@ -102,10 +109,10 @@ resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.138.tgz#34f52640d7358230308344e579c15b378d91989e" integrity sha512-A4uJgHz4hakwNBdHNPdxOTkYmXNgmUAKLbXZ7PKGslgeV0Mb8P3BlbYfPovExek1qnod4pDfRbxuzcVs3dlFLg== -"@types/mocha@^5.2.7": - version "5.2.7" - resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-5.2.7.tgz#315d570ccb56c53452ff8638738df60726d5b6ea" - integrity sha512-NYrtPht0wGzhwe9+/idPaBB+TqkY9AhTvOLMkThm0IoEfLaiVQZwBwyJ5puCkO3AUCWrmcoePjp2mbFocKy4SQ== +"@types/mocha@^7.0.1": + version "7.0.1" + resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-7.0.1.tgz#5d7ec2a789a1f77c59b7ad071b9d50bf1abbfc9e" + integrity sha512-L/Nw/2e5KUaprNJoRA33oly+M8X8n0K+FwLTbYqwTcR14wdPWeRkigBLfSFpN/Asf9ENZTMZwLxjtjeYucAA4Q== "@types/node@*": version "12.7.5" @@ -382,12 +389,12 @@ core-util-is@1.0.2: resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= -cross-env@^6.0.3: - version "6.0.3" - resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-6.0.3.tgz#4256b71e49b3a40637a0ce70768a6ef5c72ae941" - integrity sha512-+KqxF6LCvfhWvADcDPqo64yVIB31gv/jQulX2NGzKS/g3GEVz6/pt4wjHFtFWsHMddebWD/sDthJemzM4MaAag== +cross-env@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.0.tgz#5a3b2ddce51ec713ea58f2fb79ce22e65b4f5479" + integrity sha512-rV6M9ldNgmwP7bx5u6rZsTbYidzwvrwIYZnT08hSGLcQCcggofgFW+sNe7IhA1SRauPS0QuLbbX+wdNtpqE5CQ== dependencies: - cross-spawn "^7.0.0" + cross-spawn "^7.0.1" cross-spawn@^6.0.5: version "6.0.5" @@ -400,14 +407,14 @@ cross-spawn@^6.0.5: shebang-command "^1.2.0" which "^1.2.9" -cross-spawn@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.0.tgz#21ef9470443262f33dba80b2705a91db959b2e03" - integrity sha512-6U/8SMK2FBNnB21oQ4+6Nsodxanw1gTkntYA2zBdkFYFu3ZDx65P2ONEXGSvob/QS6REjVHQ9zxzdOafwFdstw== +cross-spawn@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.1.tgz#0ab56286e0f7c24e153d04cc2aa027e43a9a5d14" + integrity sha512-u7v4o84SwFpD32Z8IIcPZ6z1/ie24O6RU3RbtL5Y316l3KuHVPx9ItBgWQ6VlfAFnRnTtMUrsQ9MUUTuEZjogg== dependencies: path-key "^3.1.0" - shebang-command "^1.2.0" - which "^1.2.9" + shebang-command "^2.0.0" + which "^2.0.1" cssom@^0.4.4: version "0.4.4" @@ -419,10 +426,10 @@ cssom@~0.3.6: resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== -cssstyle@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.0.0.tgz#911f0fe25532db4f5d44afc83f89cc4b82c97fe3" - integrity sha512-QXSAu2WBsSRXCPjvI43Y40m6fMevvyRm8JVAuF9ksQz5jha4pWP1wpaK7Yu5oLFc6+XAY+hj8YhefyXcBB53gg== +cssstyle@^2.1.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.2.0.tgz#e4c44debccd6b7911ed617a4395e5754bba59992" + integrity sha512-sEb3XFPx3jNnCAMtqrXPDeSgQr+jojtCeNf8cvMNMh1cG970+lljssvQDzPq6lmmJu2Vhqood/gtEomBiHOGnA== dependencies: cssom "~0.3.6" @@ -575,6 +582,11 @@ estree-walker@^0.6.1: resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.6.1.tgz#53049143f40c6eb918b23671d1fe3219f3a1b362" integrity sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w== +estree-walker@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-1.0.1.tgz#31bc5d612c96b704106b477e6dd5d8aa138cb700" + integrity sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg== + esutils@^2.0.2: version "2.0.3" resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" @@ -942,16 +954,16 @@ jsdom-global@^3.0.2: resolved "https://registry.yarnpkg.com/jsdom-global/-/jsdom-global-3.0.2.tgz#6bd299c13b0c4626b2da2c0393cd4385d606acb9" integrity sha1-a9KZwTsMRiay2iwDk81DhdYGrLk= -jsdom@^16.0.0: - version "16.0.1" - resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.0.1.tgz#5a5214cf69609531bf6fa5b6322fdd90ceed5bf7" - integrity sha512-wKJe/APzq+ak9i+2ybWE20lDIhF9AkGKSZf8UsjPN39acatFB6oA7K397kQvHVikds0yQono2h6J7UjbPtPOWw== +jsdom@^16.1.0: + version "16.1.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.1.0.tgz#7e245db708ee00302947be7beb88a2ffa587ad2b" + integrity sha512-kpIcNAuZYc/L17WADOOHslz/q5+3SipP/iRb3j6zd1zQ6pFJubLi/VCdD3NqBpj/IKKK4YXny1vv44rbEUSGFg== dependencies: abab "^2.0.3" acorn "^7.1.0" acorn-globals "^4.3.2" cssom "^0.4.4" - cssstyle "^2.0.0" + cssstyle "^2.1.0" data-urls "^2.0.0" decimal.js "^10.2.0" domexception "^2.0.1" @@ -1089,6 +1101,13 @@ magic-string@^0.25.2: dependencies: sourcemap-codec "^1.4.4" +magic-string@^0.25.5: + version "0.25.6" + resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.6.tgz#5586387d1242f919c6d223579cc938bf1420795e" + integrity sha512-3a5LOMSGoCTH5rbqobC2HuDNRtE2glHZ8J7pK+QZYppyWA36yuNpsX994rIY2nCuyP7CZYy7lQq/X2jygiZ89g== + dependencies: + sourcemap-codec "^1.4.4" + make-dir@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.0.0.tgz#1b5f39f6b9270ed33f9f054c5c0f84304989f801" @@ -1154,10 +1173,10 @@ mkdirp@0.5.1: dependencies: minimist "0.0.8" -mocha@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-7.0.0.tgz#c60d14bf3de9601f549b3ff5be657eb8381c54bf" - integrity sha512-CirsOPbO3jU86YKjjMzFLcXIb5YiGLUrjrXFHoJ3e2z9vWiaZVCZQ2+gtRGMPWF+nFhN6AWwLM/juzAQ6KRkbA== +mocha@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-7.0.1.tgz#276186d35a4852f6249808c6dd4a1376cbf6c6ce" + integrity sha512-9eWmWTdHLXh72rGrdZjNbG3aa1/3NRPpul1z0D979QpEnFdCG0Q5tv834N+94QEN2cysfV72YocQ3fn87s70fg== dependencies: ansi-colors "3.2.3" browser-stdout "1.3.1" @@ -1516,10 +1535,10 @@ resolve@1.8.1: dependencies: path-parse "^1.0.5" -rimraf@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.0.tgz#614176d4b3010b75e5c390eb0ee96f6dc0cebb9b" - integrity sha512-NDGVxTsjqfunkds7CqsOiEnxln4Bo7Nddl3XhS4pXg5OzwkLqJ971ZVAAnB+DDLnF76N+VnDEiBHaVV8I06SUg== +rimraf@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.1.tgz#48d3d4cb46c80d388ab26cd61b1b466ae9ae225a" + integrity sha512-IQ4ikL8SjBiEDZfk+DFVwqRK8md24RWMEJkdSlgNLkyyAImcjf8SWvU1qFMDOb4igBClbTQ/ugPqXcRwdFTxZw== dependencies: glob "^7.1.3" @@ -1563,17 +1582,17 @@ rollup-pluginutils@2.8.1: dependencies: estree-walker "^0.6.1" -rollup-pluginutils@^2.6.0, rollup-pluginutils@^2.8.1: +rollup-pluginutils@^2.8.1: version "2.8.2" resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz#72f2af0748b592364dbd3389e600e5a9444a351e" integrity sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ== dependencies: estree-walker "^0.6.1" -rollup@^1.29.0: - version "1.29.0" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.29.0.tgz#6a1a79eea43ca9d3d79a90c15a1ceecedc72097b" - integrity sha512-V63Iz0dSdI5qPPN5HmCN6OBRzBFhMqNWcvwgq863JtSCTU6Vdvqq6S2fYle/dSCyoPrBkIP3EIr1RVs3HTRqqg== +rollup@^1.31.0: + version "1.31.0" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.31.0.tgz#e2a87212e96aa7850f3eb53fdd02cf89f2d2fe9a" + integrity sha512-9C6ovSyNeEwvuRuUUmsTpJcXac1AwSL1a3x+O5lpmQKZqi5mmrjauLeqIjvREC+yNRR8fPdzByojDng+af3nVw== dependencies: "@types/estree" "*" "@types/node" "*" @@ -1623,11 +1642,23 @@ shebang-command@^1.2.0: dependencies: shebang-regex "^1.0.0" +shebang-command@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" + integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== + dependencies: + shebang-regex "^3.0.0" + shebang-regex@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM= +shebang-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" + integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== + shell-quote@^1.6.1: version "1.7.2" resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.2.tgz#67a7d02c76c9da24f99d20808fcaded0e0e04be2" @@ -1972,6 +2003,13 @@ which@1.3.1, which@^1.2.9: dependencies: isexe "^2.0.0" +which@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" + integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== + dependencies: + isexe "^2.0.0" + wide-align@1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" From a2ec46523eeb9be0b7b1a3c8a6c5b9e41a78fb1c Mon Sep 17 00:00:00 2001 From: Jack Works Date: Fri, 7 Feb 2020 15:22:30 +0800 Subject: [PATCH 63/80] chore: add linter strict-boolean-expressions --- .circleci/config.yml | 1 + .eslintignore | 6 + .eslintrc | 37 + package.json | 6 + src/DOM/Proxy.ts | 9 +- src/DOM/Watcher.ts | 16 +- src/Debuggers/DOMProxyDevtoolsEnhancer.tsx | 2 +- .../LiveSelectorDevtoolsEnhancer.tsx | 2 +- src/Debuggers/WatcherDevtoolsEnhancer.tsx | 12 +- src/Extension/AutomatedTabTask.ts | 2 +- src/Extension/Context.ts | 15 +- src/Extension/MessageCenter.ts | 10 +- src/util/sleep.ts | 2 +- yarn.lock | 710 +++++++++++++++++- 14 files changed, 783 insertions(+), 47 deletions(-) create mode 100644 .eslintignore create mode 100644 .eslintrc diff --git a/.circleci/config.yml b/.circleci/config.yml index 4f3d2be..55e0dcc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,6 +23,7 @@ jobs: paths: - node_modules key: v1-dependencies-{{ checksum "yarn.lock" }} + - run: yarn eslint - run: yarn build - save_cache: paths: diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..6625522 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,6 @@ +es +doc +temp +*.spec.ts +*.test.ts +umd \ No newline at end of file diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..b5635d0 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,37 @@ +{ + "parserOptions": { + "ecmaVersion": 2020, + "sourceType": "module", + "project": "./tsconfig.json" + }, + "parser": "@typescript-eslint/parser", + "plugins": ["@typescript-eslint"], + "extends": [], + "env": {}, + "rules": { + "no-debugger": "error", + "no-plusplus": "error", + "no-bitwise": "error", + "no-new-wrappers": "error", + "constructor-super": "error", + "no-redeclare": "error", + "no-eval": "error", + "no-template-curly-in-string": "error", + "no-return-await": "error", + "no-sparse-arrays": "error", + "dot-notation": "error", + "no-fallthrough": "error", + "prefer-const": "error", + "eqeqeq": "error", + "no-extra-bind": "error", + "use-isnan": "error", + "@typescript-eslint/strict-boolean-expressions": [ + 2, + { + "allowNullable": true, + "allowSafe": true, + "ignoreRhs": true + } + ] + } +} diff --git a/package.json b/package.json index 53ebeb0..71504b1 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,8 @@ "build": "cross-env NODE_ENV=production npm-run-all --parallel clean \"build:tsc -- {@}\" build:rollup", "build:tsc": "tsc", "build:rollup": "rollup -c -m", + "eslint": "eslint . --ext .ts,.tsx", + "eslint:watch": "yarn esw . --ext .ts,.tsx -w --color", "clean": "rimraf ./es ./umd", "prepublishOnly": "npm run build", "doc": "npm-run-all --serial build:tsc doc:api doc:md", @@ -38,7 +40,11 @@ "@rollup/plugin-replace": "^2.3.1", "@types/lodash-es": "^4.1.4", "@types/mocha": "^7.0.1", + "@typescript-eslint/eslint-plugin": "^2.19.0", + "@typescript-eslint/parser": "^2.19.0", "cross-env": "^7.0.0", + "eslint": "^6.8.0", + "eslint-watch": "^6.0.1", "jsdom": "^16.1.0", "jsdom-global": "^3.0.2", "mocha": "^7.0.1", diff --git a/src/DOM/Proxy.ts b/src/DOM/Proxy.ts index 751fb78..a68e1c3 100644 --- a/src/DOM/Proxy.ts +++ b/src/DOM/Proxy.ts @@ -58,7 +58,7 @@ export function DOMProxy< let virtualAfter: After | null = null let virtualAfterShadow: ShadowRoot | null = null /** All changes applied on the `proxy` */ - let changes: ActionTypes[keyof ActionTypes][] = [] + const changes: ActionTypes[keyof ActionTypes][] = [] /** Read Traps */ const readonlyTraps: ProxyHandler = { ownKeys: () => { @@ -132,7 +132,7 @@ export function DOMProxy< const modifyTrapsNotWrite = modifyTraps(false) const proxy = Proxy.revocable(defaultCurrent, { ...readonlyTraps, ...modifyTrapsWrite }) function hasStyle(e: Node): e is HTMLElement { - return !!(e as any).style + return 'style' in e } /** Call before realCurrent change */ function undoEffects(nextCurrent?: Node | null) { @@ -144,7 +144,7 @@ export function DOMProxy< } else if (attr === 'appendChild') { if (!nextCurrent) { const node = (change.op.thisArg as Parameters)[0] - node && current.removeChild(node) + if (node !== undefined) current.removeChild(node) } } } else if (change.type === 'modifyStyle') { @@ -170,7 +170,7 @@ export function DOMProxy< const replayable = ['appendChild', 'addEventListener', 'before', 'after'] const key: keyof Node = change.op.name as any if (replayable.indexOf(key) !== -1) { - if (current[key]) { + if (current[key] !== undefined) { ;(current[key] as any)(...change.op.param) } else { console.warn(current, `doesn't have method "${key}", replay failed.`) @@ -294,6 +294,7 @@ export function DOMProxy< DOMProxyDevtoolsEnhancer.allDOMProxy.set(DOMProxyObject, changes) return DOMProxyObject } +// eslint-disable-next-line no-redeclare export namespace DOMProxy { export function enhanceDebugger() { installCustomObjectFormatter(new DOMProxyDevtoolsEnhancer()) diff --git a/src/DOM/Watcher.ts b/src/DOM/Watcher.ts index 7b8cebf..c8d4c07 100644 --- a/src/DOM/Watcher.ts +++ b/src/DOM/Watcher.ts @@ -607,7 +607,7 @@ export abstract class Watcher = function applyUseForeachCallback(callback: useForeachReturns) { const cb = callback as useForeachReturns - let remove: any, change: any, mutation: any - if (cb === undefined) { - } else if (typeof cb === 'function') remove = cb - else if (cb) { + type f = undefined | ((...args: any[]) => any) + let remove: f, change: f, mutation: f + if (typeof cb === 'function') remove = cb + else if (cb !== undefined) { const { onNodeMutation, onRemove, onTargetChanged } = cb ;[remove, change, mutation] = [onRemove, onTargetChanged, onNodeMutation] } @@ -759,7 +759,7 @@ interface WarningOptions { function warning(_: Partial = {}) { const { dev, once, fn } = { ...({ dev: false, once: true, fn: () => {} } as WarningOptions), ..._ } if (dev) if (process.env.NODE_ENV !== 'development') return { warn(f = fn) {}, ignored: true, stack: '' } - const [_0, _1, _2, ...lines] = (new Error().stack || '').split('\n') + const [_0, _1, _2, ...lines] = (new Error().stack ?? '').split('\n') const stack = lines.join('\n') let warned = 0 const obj = { @@ -767,9 +767,9 @@ function warning(_: Partial = {}) { stack, warn(f = fn) { if (obj.ignored) return - if (warned && once) return + if (warned > 0 && once) return if (typeof once === 'number' && warned <= once) return - warned++ + warned = warned + 1 f(stack) }, } diff --git a/src/Debuggers/DOMProxyDevtoolsEnhancer.tsx b/src/Debuggers/DOMProxyDevtoolsEnhancer.tsx index 97ae3b2..561c83c 100644 --- a/src/Debuggers/DOMProxyDevtoolsEnhancer.tsx +++ b/src/Debuggers/DOMProxyDevtoolsEnhancer.tsx @@ -29,7 +29,7 @@ export class DOMProxyDevtoolsEnhancer implements React.CustomObjectFormatter { decorateShadow(obj: ShadowRoot) { return {`#shadow-root (${obj.mode})`} } - body(obj: DOMProxy, clearState: boolean) { + body(obj: DOMProxy, clearState: boolean) { const [state, setState, render] = React.useState(obj, x) if (clearState) setState({ refreshed: false }) diff --git a/src/Debuggers/LiveSelectorDevtoolsEnhancer.tsx b/src/Debuggers/LiveSelectorDevtoolsEnhancer.tsx index d04fcec..c612554 100644 --- a/src/Debuggers/LiveSelectorDevtoolsEnhancer.tsx +++ b/src/Debuggers/LiveSelectorDevtoolsEnhancer.tsx @@ -98,7 +98,7 @@ export class LiveSelectorDevtoolsEnhancer implements React.CustomObjectFormatter // @ts-ignore initialElements: obj.initialElements, // @ts-ignore - stack: obj.stack || '', + stack: obj.stack ?? '', // @ts-ignore selectorChain: obj.selectorChain, } diff --git a/src/Debuggers/WatcherDevtoolsEnhancer.tsx b/src/Debuggers/WatcherDevtoolsEnhancer.tsx index 7d7f600..51a72e1 100644 --- a/src/Debuggers/WatcherDevtoolsEnhancer.tsx +++ b/src/Debuggers/WatcherDevtoolsEnhancer.tsx @@ -90,6 +90,10 @@ export class WatcherDevtoolsEnhancer implements React.CustomObjectFormatter { setState({ refreshed: true }) forceRender() } + function isNil(x: any): boolean { + if (x === null || x === undefined) return false + return true + } return (
Last values: @@ -102,13 +106,17 @@ export class WatcherDevtoolsEnhancer implements React.CustomObjectFormatter { Other: {this.optionsRow('LiveSelector', priv.liveSelector, () => false)} - {this.optionsRow('ConsistentWatchRoot', priv.consistentWatchRoot, x => x === document.body || !x)} + {this.optionsRow( + 'ConsistentWatchRoot', + priv.consistentWatchRoot, + x => x === document.body || isNil(x), + )} {this.optionsRow('DomProxyOptions', priv.domProxyOption, x => Object.keys(x).length === 0)} {this.optionsRow('KeyComparer', priv.keyComparer, x => x(test, test))} {this.optionsRow('ValueComparer', priv.valueComparer, x => x(test, test))} {this.optionsRow('MapNodeToKey', priv.mapNodeToKey, x => x(test, 0, []) === test)} {this.optionsRow('FirstDOMProxy', obj.firstDOMProxy, x => true)} - {this.optionsRow('stopWatchOnDisconnected', priv.stopWatchOnDisconnected, x => !x)} + {this.optionsRow('stopWatchOnDisconnected', priv.stopWatchOnDisconnected, isNil)}

Actions:
diff --git a/src/Extension/AutomatedTabTask.ts b/src/Extension/AutomatedTabTask.ts index 3d4b8a2..527cf4b 100644 --- a/src/Extension/AutomatedTabTask.ts +++ b/src/Extension/AutomatedTabTask.ts @@ -210,7 +210,7 @@ export function AutomatedTabTask Pr let finalURL: string if (typeof urlOrTabID === 'string') finalURL = urlOrTabID - else finalURL = url || '' + else finalURL = url ?? '' function proxyTrap(_target: unknown, taskName: string | number | symbol) { return (...taskArgs: any[]) => { if (typeof taskName !== 'string') throw new TypeError('Key must be a string') diff --git a/src/Extension/Context.ts b/src/Extension/Context.ts index d66322d..6e15a7a 100644 --- a/src/Extension/Context.ts +++ b/src/Extension/Context.ts @@ -13,17 +13,18 @@ export type Contexts = 'background' | 'content' | 'webpage' | 'unknown' | 'optio */ export function GetContext(): Contexts { if (typeof location === 'undefined') return 'unknown' - if (typeof browser !== 'undefined') { - if (location.protocol.match('-extension')) { + if (typeof browser !== 'undefined' && browser !== null) { + const scheme = location.protocol.match('-extension') + const backgroundURL = browser.extension?.getBackgroundPage()?.location?.href + if (scheme || location.hostname === 'localhost') { if ( - browser.extension && browser.extension.getBackgroundPage - ? browser.extension.getBackgroundPage().location.href === location.href - : ['generated', 'background', 'page', '.html'].every(x => location.pathname.match(x)) + backgroundURL === location.href || + ['generated', 'background', 'page', '.html'].every(x => location.pathname.match(x)) ) return 'background' - return 'options' } - if (browser.runtime && browser.runtime.getManifest) return 'content' + if (scheme) return 'options' + if (browser.runtime?.getManifest !== undefined) return 'content' } // What about rollup? if (location.hostname === 'localhost') return 'debugging' diff --git a/src/Extension/MessageCenter.ts b/src/Extension/MessageCenter.ts index ecbad17..979ecc5 100644 --- a/src/Extension/MessageCenter.ts +++ b/src/Extension/MessageCenter.ts @@ -32,10 +32,10 @@ export class MessageCenter { public serialization: Serialization = NoSerialization private eventEmitter = mitt() private listener = async (request: unknown) => { - let { key, data, instanceKey } = (await this.serialization.deserialization(request)) as InternalMessageType + const { key, data, instanceKey } = (await this.serialization.deserialization(request)) as InternalMessageType // Message is not for us - if (this.instanceKey !== (instanceKey || '')) return - if (!key || !data) return + if (this.instanceKey !== (instanceKey ?? '')) return + if (key === undefined) return if (this.log) { console.log( `%cReceive%c %c${key.toString()}`, @@ -97,14 +97,14 @@ export class MessageCenter { const serialized = await this.serialization.serialization({ data, key, - instanceKey: this.instanceKey || '', + instanceKey: this.instanceKey ?? '', } as InternalMessageType) if (typeof browser !== 'undefined') { browser.runtime?.sendMessage?.(serialized).catch(noop) // Send message to Content Script browser.tabs?.query({ discarded: false }).then(tabs => { for (const tab of tabs) { - if (tab.id) browser.tabs.sendMessage(tab.id, serialized).catch(noop) + if (tab.id !== undefined) browser.tabs.sendMessage(tab.id, serialized).catch(noop) } }) } diff --git a/src/util/sleep.ts b/src/util/sleep.ts index f143358..0ac1001 100644 --- a/src/util/sleep.ts +++ b/src/util/sleep.ts @@ -22,7 +22,7 @@ export const timeout = (promise: PromiseLike, time: number, rejectReason?: const race = Promise.race([ promise, new Promise((r, reject) => { - timer = setTimeout(() => reject(new Error(rejectReason || 'timeout')), time) + timer = setTimeout(() => reject(new Error(rejectReason ?? 'timeout')), time) }), ]) race.finally(() => clearTimeout(timer)) diff --git a/yarn.lock b/yarn.lock index f8c07a5..bb0d4b9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,22 @@ # yarn lockfile v1 +"@babel/code-frame@^7.0.0": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.8.3.tgz#33e25903d7481181534e12ec0a25f16b6fcf419e" + integrity sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g== + dependencies: + "@babel/highlight" "^7.8.3" + +"@babel/highlight@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.8.3.tgz#28f173d04223eaaa59bc1d439a3836e6d1265797" + integrity sha512-PX4y5xQUvy0fnEVHrYOarRPXVWafSjTW9T0Hab8gVIawpl2Sj0ORyrygANq+KjcNlSSTw0YCLSNA8OyZ1I4yEg== + dependencies: + chalk "^2.0.0" + esutils "^2.0.2" + js-tokens "^4.0.0" + "@babel/runtime@^7.3.4": version "7.6.0" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.6.0.tgz#4fc1d642a9fd0299754e8b5de62c631cf5568205" @@ -92,11 +108,21 @@ resolved "https://registry.yarnpkg.com/@types/argparse/-/argparse-1.0.33.tgz#2728669427cdd74a99e53c9f457ca2866a37c52d" integrity sha512-VQgHxyPMTj3hIlq9SY1mctqx+Jj8kpQfoLvDlVSDNOyuYs8JYfkuY3OW/4+dO657yPmNhHpePRx0/Tje5ImNVQ== +"@types/eslint-visitor-keys@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d" + integrity sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag== + "@types/estree@*", "@types/estree@0.0.39": version "0.0.39" resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f" integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw== +"@types/json-schema@^7.0.3": + version "7.0.4" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.4.tgz#38fd73ddfd9b55abb1e1b2ed578cb55bd7b7d339" + integrity sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA== + "@types/lodash-es@^4.1.4": version "4.17.3" resolved "https://registry.yarnpkg.com/@types/lodash-es/-/lodash-es-4.17.3.tgz#87eb0b3673b076b8ee655f1890260a136af09a2d" @@ -131,6 +157,49 @@ dependencies: "@types/node" "*" +"@typescript-eslint/eslint-plugin@^2.19.0": + version "2.19.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.19.0.tgz#bf743448a4633e4b52bee0c40148ba072ab3adbd" + integrity sha512-u7IcQ9qwsB6U806LupZmINRnQjC+RJyv36sV/ugaFWMHTbFm/hlLTRx3gGYJgHisxcGSTnf+I/fPDieRMhPSQQ== + dependencies: + "@typescript-eslint/experimental-utils" "2.19.0" + eslint-utils "^1.4.3" + functional-red-black-tree "^1.0.1" + regexpp "^3.0.0" + tsutils "^3.17.1" + +"@typescript-eslint/experimental-utils@2.19.0": + version "2.19.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.19.0.tgz#d5ca732f22c009e515ba09fcceb5f2127d841568" + integrity sha512-zwpg6zEOPbhB3+GaQfufzlMUOO6GXCNZq6skk+b2ZkZAIoBhVoanWK255BS1g5x9bMwHpLhX0Rpn5Fc3NdCZdg== + dependencies: + "@types/json-schema" "^7.0.3" + "@typescript-eslint/typescript-estree" "2.19.0" + eslint-scope "^5.0.0" + +"@typescript-eslint/parser@^2.19.0": + version "2.19.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.19.0.tgz#912160d9425395d09857dcd5382352bc98be11ae" + integrity sha512-s0jZoxAWjHnuidbbN7aA+BFVXn4TCcxEVGPV8lWMxZglSs3NRnFFAlL+aIENNmzB2/1jUJuySi6GiM6uACPmpg== + dependencies: + "@types/eslint-visitor-keys" "^1.0.0" + "@typescript-eslint/experimental-utils" "2.19.0" + "@typescript-eslint/typescript-estree" "2.19.0" + eslint-visitor-keys "^1.1.0" + +"@typescript-eslint/typescript-estree@2.19.0": + version "2.19.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.19.0.tgz#6bd7310b9827e04756fe712909f26956aac4b196" + integrity sha512-n6/Xa37k0jQdwpUszffi19AlNbVCR0sdvCs3DmSKMD7wBttKY31lhD2fug5kMD91B2qW4mQldaTEc1PEzvGu8w== + dependencies: + debug "^4.1.1" + eslint-visitor-keys "^1.1.0" + glob "^7.1.6" + is-glob "^4.0.1" + lodash "^4.17.15" + semver "^6.3.0" + tsutils "^3.17.1" + abab@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.3.tgz#623e2075e02eb2d3f2475e49f99c91846467907a" @@ -144,6 +213,11 @@ acorn-globals@^4.3.2: acorn "^6.0.1" acorn-walk "^6.0.1" +acorn-jsx@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.1.0.tgz#294adb71b57398b0680015f0a38c563ee1db5384" + integrity sha512-tMUqwBWfLFbJbizRmEcWSLw6HnFzfdJs2sOJEOwwtVPMoH/0Ay+E703oZz78VSXZiiDcZrQ5XKjPIUQixhmgVw== + acorn-walk@^6.0.1: version "6.2.0" resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-6.2.0.tgz#123cb8f3b84c2171f1f7fb252615b1c78a6b1a8c" @@ -159,6 +233,16 @@ acorn@^7.1.0: resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.1.0.tgz#949d36f2c292535da602283586c2477c57eb2d6c" integrity sha512-kL5CuoXA/dgxlBbVrflsflzQ3PAas7RYZB52NOm/6839iVYJgKMJ3cQJD+t2i5+qFa8h3MDpEOJiS64E8JLnSQ== +ajv@^6.10.0, ajv@^6.10.2: + version "6.11.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.11.0.tgz#c3607cbc8ae392d8a5a536f25b21f8e5f3f87fe9" + integrity sha512-nCprB/0syFYy9fVYU1ox1l2KN8S9I+tziH8D4zdZuLT3N6RMlGSGt5FSTpAiHB/Whv8Qs1cWHma1aMKZyaHRKA== + dependencies: + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + ajv@^6.5.5: version "6.10.2" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.10.2.tgz#d3cea04d6b017b2894ad69040fec8b623eb4bd52" @@ -174,6 +258,13 @@ ansi-colors@3.2.3: resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-3.2.3.tgz#57d35b8686e851e2cc04c403f1c00203976a1813" integrity sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw== +ansi-escapes@^4.2.1: + version "4.3.0" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.0.tgz#a4ce2b33d6b214b7950d8595c212f12ac9cc569d" + integrity sha512-EiYhwo0v255HUL6eDyuLrXEkTi7WwVCLAw+SeOQ7M7qdun1z1pum4DEm/nuqIVbPvi9RPPc9k9LbyBv6H0DwVg== + dependencies: + type-fest "^0.8.1" + ansi-regex@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" @@ -184,6 +275,11 @@ ansi-regex@^4.1.0: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== +ansi-regex@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" + integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== + ansi-styles@^3.2.0, ansi-styles@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" @@ -223,6 +319,11 @@ assert-plus@1.0.0, assert-plus@^1.0.0: resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU= +astral-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" + integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== + async-call-rpc@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/async-call-rpc/-/async-call-rpc-1.0.4.tgz#ded3ef0fac75d0ae90e0ac574adda1ffae4a5cc9" @@ -295,6 +396,11 @@ builtin-modules@^3.1.0: resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.1.0.tgz#aad97c15131eb76b65b50ef208e7584cd76a7484" integrity sha512-k0KL0aWZuBt2lrxrcASWDfwOLMnodeQjodT/1SxEQAXsHANgo6ZC/VEaSEHCXt7aSTZ4/4H5LKa+tBXmW7Vtvw== +callsites@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" + integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== + camelcase@^5.0.0: version "5.3.1" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" @@ -305,7 +411,7 @@ caseless@~0.12.0: resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= -chalk@^2.0.1, chalk@^2.4.1: +chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.4.1, chalk@^2.4.2: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== @@ -314,6 +420,11 @@ chalk@^2.0.1, chalk@^2.4.1: escape-string-regexp "^1.0.5" supports-color "^5.3.0" +chardet@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" + integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== + chokidar@3.3.0: version "3.3.0" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.3.0.tgz#12c0714668c55800f659e262d4962a97faf554a6" @@ -329,6 +440,33 @@ chokidar@3.3.0: optionalDependencies: fsevents "~2.1.1" +chokidar@^3.1.1: + version "3.3.1" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.3.1.tgz#c84e5b3d18d9a4d77558fef466b1bf16bbeb3450" + integrity sha512-4QYCEWOcK3OJrxwvyyAOxFuhpvOVCYkr33LPfFNBjAD/w3sEzWsp2BUOkI4l9bHvWioAd0rc6NlHUOEaWkTeqg== + dependencies: + anymatch "~3.1.1" + braces "~3.0.2" + glob-parent "~5.1.0" + is-binary-path "~2.1.0" + is-glob "~4.0.1" + normalize-path "~3.0.0" + readdirp "~3.3.0" + optionalDependencies: + fsevents "~2.1.2" + +cli-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" + integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== + dependencies: + restore-cursor "^3.1.0" + +cli-width@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639" + integrity sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk= + cliui@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5" @@ -384,6 +522,11 @@ concurrent-lock@^1.0.7: dependencies: "@babel/runtime" "^7.3.4" +core-js@^3.2.1: + version "3.6.4" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.6.4.tgz#440a83536b458114b9cb2ac1580ba377dc470647" + integrity sha512-4paDGScNgZP2IXXilaffL9X7968RuvwlkK3xWtZRVqgd8SYNiVKRJvkFd1aqqEuPfN7E68ZHEp9hDj6lHj4Hyw== + core-util-is@1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" @@ -407,7 +550,7 @@ cross-spawn@^6.0.5: shebang-command "^1.2.0" which "^1.2.9" -cross-spawn@^7.0.1: +cross-spawn@^7.0.0, cross-spawn@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.1.tgz#0ab56286e0f7c24e153d04cc2aa027e43a9a5d14" integrity sha512-u7v4o84SwFpD32Z8IIcPZ6z1/ie24O6RU3RbtL5Y316l3KuHVPx9ItBgWQ6VlfAFnRnTtMUrsQ9MUUTuEZjogg== @@ -461,6 +604,13 @@ debug@3.2.6: dependencies: ms "^2.1.1" +debug@^4.0.1, debug@^4.1.0, debug@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791" + integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw== + dependencies: + ms "^2.1.1" + decamelize@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" @@ -498,6 +648,13 @@ diff@^4.0.1: resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.1.tgz#0c667cb467ebbb5cea7f14f135cc2dba7780a8ff" integrity sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q== +doctrine@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" + integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== + dependencies: + esutils "^2.0.2" + domexception@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/domexception/-/domexception-2.0.1.tgz#fb44aefba793e1574b0af6aed2801d057529f304" @@ -518,6 +675,18 @@ emoji-regex@^7.0.1: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== + +end-of-stream@^1.1.0: + version "1.4.4" + resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" + integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== + dependencies: + once "^1.4.0" + error-ex@^1.3.1: version "1.3.2" resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" @@ -567,12 +736,116 @@ escodegen@^1.12.1: optionalDependencies: source-map "~0.6.1" +eslint-scope@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.0.0.tgz#e87c8887c73e8d1ec84f1ca591645c358bfc8fb9" + integrity sha512-oYrhJW7S0bxAFDvWqzvMPRm6pcgcnWc4QnofCAqRTRfQC0JcwenzGglTtsLyIuuWFfkqDG9vz67cnttSd53djw== + dependencies: + esrecurse "^4.1.0" + estraverse "^4.1.1" + +eslint-utils@^1.4.3: + version "1.4.3" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.3.tgz#74fec7c54d0776b6f67e0251040b5806564e981f" + integrity sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q== + dependencies: + eslint-visitor-keys "^1.1.0" + +eslint-visitor-keys@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz#e2a82cea84ff246ad6fb57f9bde5b46621459ec2" + integrity sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A== + +eslint-watch@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/eslint-watch/-/eslint-watch-6.0.1.tgz#e098391658a7c148deca172ad2095065ada05359" + integrity sha512-tWT6gQQWzGVn4KMs6ZAdG+nkNNQHg+c6wGdw/mwhp+jWyA7OWEOLxQnRhrP34ddJjpgDafhHOHBNtpVOtXXv4g== + dependencies: + chokidar "^3.1.1" + core-js "^3.2.1" + debug "^4.1.0" + execa "^2.0.4" + keypress "^0.2.1" + lodash.debounce "^4.0.8" + lodash.isempty "^4.4.0" + lodash.isequal "^4.5.0" + lodash.kebabcase "^4.1.1" + lodash.unionwith "^4.6.0" + optionator "^0.8.2" + source-map-support "^0.5.13" + +eslint@^6.8.0: + version "6.8.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.8.0.tgz#62262d6729739f9275723824302fb227c8c93ffb" + integrity sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig== + dependencies: + "@babel/code-frame" "^7.0.0" + ajv "^6.10.0" + chalk "^2.1.0" + cross-spawn "^6.0.5" + debug "^4.0.1" + doctrine "^3.0.0" + eslint-scope "^5.0.0" + eslint-utils "^1.4.3" + eslint-visitor-keys "^1.1.0" + espree "^6.1.2" + esquery "^1.0.1" + esutils "^2.0.2" + file-entry-cache "^5.0.1" + functional-red-black-tree "^1.0.1" + glob-parent "^5.0.0" + globals "^12.1.0" + ignore "^4.0.6" + import-fresh "^3.0.0" + imurmurhash "^0.1.4" + inquirer "^7.0.0" + is-glob "^4.0.0" + js-yaml "^3.13.1" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.3.0" + lodash "^4.17.14" + minimatch "^3.0.4" + mkdirp "^0.5.1" + natural-compare "^1.4.0" + optionator "^0.8.3" + progress "^2.0.0" + regexpp "^2.0.1" + semver "^6.1.2" + strip-ansi "^5.2.0" + strip-json-comments "^3.0.1" + table "^5.2.3" + text-table "^0.2.0" + v8-compile-cache "^2.0.3" + +espree@^6.1.2: + version "6.1.2" + resolved "https://registry.yarnpkg.com/espree/-/espree-6.1.2.tgz#6c272650932b4f91c3714e5e7b5f5e2ecf47262d" + integrity sha512-2iUPuuPP+yW1PZaMSDM9eyVf8D5P0Hi8h83YtZ5bPc/zHYjII5khoixIUTMO794NOY8F/ThF1Bo8ncZILarUTA== + dependencies: + acorn "^7.1.0" + acorn-jsx "^5.1.0" + eslint-visitor-keys "^1.1.0" + esprima@^4.0.0, esprima@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== -estraverse@^4.2.0: +esquery@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.0.1.tgz#406c51658b1f5991a5f9b62b1dc25b00e3e5c708" + integrity sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA== + dependencies: + estraverse "^4.0.0" + +esrecurse@^4.1.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.1.tgz#007a3b9fdbc2b3bb87e4879ea19c92fdbd3942cf" + integrity sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ== + dependencies: + estraverse "^4.1.0" + +estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0: version "4.3.0" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== @@ -592,11 +865,35 @@ esutils@^2.0.2: resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== +execa@^2.0.4: + version "2.1.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-2.1.0.tgz#e5d3ecd837d2a60ec50f3da78fd39767747bbe99" + integrity sha512-Y/URAVapfbYy2Xp/gb6A0E7iR8xeqOCXsuuaoMn7A5PzrXUK84E1gyiEfq0wQd/GHA6GsoHWwhNq8anb0mleIw== + dependencies: + cross-spawn "^7.0.0" + get-stream "^5.0.0" + is-stream "^2.0.0" + merge-stream "^2.0.0" + npm-run-path "^3.0.0" + onetime "^5.1.0" + p-finally "^2.0.0" + signal-exit "^3.0.2" + strip-final-newline "^2.0.0" + extend@~3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== +external-editor@^3.0.3: + version "3.1.0" + resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-3.1.0.tgz#cb03f740befae03ea4d283caed2741a83f335495" + integrity sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew== + dependencies: + chardet "^0.7.0" + iconv-lite "^0.4.24" + tmp "^0.0.33" + extsprintf@1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" @@ -612,16 +909,35 @@ fast-deep-equal@^2.0.1: resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49" integrity sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk= +fast-deep-equal@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz#545145077c501491e33b15ec408c294376e94ae4" + integrity sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA== + fast-json-stable-stringify@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" integrity sha1-1RQsDK7msRifh9OnYREGT4bIu/I= -fast-levenshtein@~2.0.4: +fast-levenshtein@~2.0.4, fast-levenshtein@~2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= +figures@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-3.1.0.tgz#4b198dd07d8d71530642864af2d45dd9e459c4ec" + integrity sha512-ravh8VRXqHuMvZt/d8GblBeqDMkdJMBdv/2KntFH+ra5MXkO7nxNKpzQ3n6QD/2da1kH0aWmNISdvhM7gl2gVg== + dependencies: + escape-string-regexp "^1.0.5" + +file-entry-cache@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-5.0.1.tgz#ca0f6efa6dd3d561333fb14515065c2fafdf439c" + integrity sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g== + dependencies: + flat-cache "^2.0.1" + fill-range@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" @@ -653,6 +969,15 @@ find-up@^4.0.0: locate-path "^5.0.0" path-exists "^4.0.0" +flat-cache@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-2.0.1.tgz#5d296d6f04bda44a4630a301413bdbc2ec085ec0" + integrity sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA== + dependencies: + flatted "^2.0.0" + rimraf "2.6.3" + write "1.0.3" + flat@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/flat/-/flat-4.1.0.tgz#090bec8b05e39cba309747f1d588f04dbaf98db2" @@ -660,6 +985,11 @@ flat@^4.1.0: dependencies: is-buffer "~2.0.3" +flatted@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.1.tgz#69e57caa8f0eacbc281d2e2cb458d46fdb449e08" + integrity sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg== + forever-agent@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" @@ -697,7 +1027,7 @@ fs.realpath@^1.0.0: resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= -fsevents@~2.1.1: +fsevents@~2.1.1, fsevents@~2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.2.tgz#4c0a1fb34bc68e543b4b82a9ec392bfbda840805" integrity sha512-R4wDiBwZ0KzpgOWetKDug1FZcYhqYnUYKtfZYt4mD5SBz76q0KR4Q9o7GIPamsVPGmW3EYPPJ0dOOjvx32ldZA== @@ -707,11 +1037,23 @@ function-bind@^1.0.2, function-bind@^1.1.1: resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== +functional-red-black-tree@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" + integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= + get-caller-file@^2.0.1: version "2.0.5" resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== +get-stream@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.1.0.tgz#01203cdc92597f9b909067c3e656cc1f4d3c4dc9" + integrity sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw== + dependencies: + pump "^3.0.0" + getpass@^0.1.1: version "0.1.7" resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" @@ -719,7 +1061,7 @@ getpass@^0.1.1: dependencies: assert-plus "^1.0.0" -glob-parent@~5.1.0: +glob-parent@^5.0.0, glob-parent@~5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.0.tgz#5f4c1d1e748d30cd73ad2944b3577a81b081e8c2" integrity sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw== @@ -750,6 +1092,25 @@ glob@^7.1.3: once "^1.3.0" path-is-absolute "^1.0.0" +glob@^7.1.6: + version "7.1.6" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" + integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +globals@^12.1.0: + version "12.3.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-12.3.0.tgz#1e564ee5c4dded2ab098b0f88f24702a3c56be13" + integrity sha512-wAfjdLgFsPZsklLJvOBUBmzYE8/CwhEqSBEMRXA3qxIiNtyqvjYurAtIfDh6chlEPUfmTY3MnZh5Hfh4q0UlIw== + dependencies: + type-fest "^0.8.1" + graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0: version "4.2.2" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.2.tgz#6f0952605d0140c1cfdb138ed005775b92d67b02" @@ -816,13 +1177,31 @@ http-signature@~1.2.0: jsprim "^1.2.2" sshpk "^1.7.0" -iconv-lite@0.4.24: +iconv-lite@0.4.24, iconv-lite@^0.4.24: version "0.4.24" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== dependencies: safer-buffer ">= 2.1.2 < 3" +ignore@^4.0.6: + version "4.0.6" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" + integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== + +import-fresh@^3.0.0: + version "3.2.1" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.2.1.tgz#633ff618506e793af5ac91bf48b72677e15cbe66" + integrity sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ== + dependencies: + parent-module "^1.0.0" + resolve-from "^4.0.0" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= + inflight@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" @@ -836,6 +1215,25 @@ inherits@2: resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== +inquirer@^7.0.0: + version "7.0.4" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.0.4.tgz#99af5bde47153abca23f5c7fc30db247f39da703" + integrity sha512-Bu5Td5+j11sCkqfqmUTiwv+tWisMtP0L7Q8WrqA2C/BbBhy1YTdFrvjjlrKq8oagA/tLQBski2Gcx/Sqyi2qSQ== + dependencies: + ansi-escapes "^4.2.1" + chalk "^2.4.2" + cli-cursor "^3.1.0" + cli-width "^2.0.0" + external-editor "^3.0.3" + figures "^3.0.0" + lodash "^4.17.15" + mute-stream "0.0.8" + run-async "^2.2.0" + rxjs "^6.5.3" + string-width "^4.1.0" + strip-ansi "^5.1.0" + through "^2.3.6" + ip-regex@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-2.1.0.tgz#fa78bf5d2e6913c911ce9f819ee5146bb6d844e9" @@ -878,7 +1276,12 @@ is-fullwidth-code-point@^2.0.0: resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= -is-glob@^4.0.1, is-glob@~4.0.1: +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== + +is-glob@^4.0.0, is-glob@^4.0.1, is-glob@~4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg== @@ -895,6 +1298,11 @@ is-number@^7.0.0: resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== +is-promise@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" + integrity sha1-eaKp7OfwlugPNtKy87wWwf9L8/o= + is-reference@^1.1.2: version "1.1.3" resolved "https://registry.yarnpkg.com/is-reference/-/is-reference-1.1.3.tgz#e99059204b66fdbe09305cfca715a29caa5c8a51" @@ -909,6 +1317,11 @@ is-regex@^1.0.4: dependencies: has "^1.0.1" +is-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.0.tgz#bde9c32680d6fae04129d6ac9d921ce7815f78e3" + integrity sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw== + is-symbol@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.2.tgz#a055f6ae57192caee329e7a860118b497a950f38" @@ -936,7 +1349,12 @@ jju@~1.4.0: resolved "https://registry.yarnpkg.com/jju/-/jju-1.4.0.tgz#a3abe2718af241a2b2904f84a625970f389ae32a" integrity sha1-o6vicYryQaKykE+EpiWXDzia4yo= -js-yaml@3.13.1, js-yaml@~3.13.1: +js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== + +js-yaml@3.13.1, js-yaml@^3.13.1, js-yaml@~3.13.1: version "3.13.1" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847" integrity sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw== @@ -1000,6 +1418,11 @@ json-schema@0.2.3: resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" integrity sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM= +json-stable-stringify-without-jsonify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" + integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE= + json-stringify-safe@~5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" @@ -1029,7 +1452,12 @@ jsx-jsonml-devtools-renderer@^1.4.1: dependencies: csstype "^2.6.6" -levn@~0.3.0: +keypress@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/keypress/-/keypress-0.2.1.tgz#1e80454250018dbad4c3fe94497d6e67b6269c77" + integrity sha1-HoBFQlABjbrUw/6USX1uZ7YmnHc= + +levn@^0.3.0, levn@~0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" integrity sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4= @@ -1067,22 +1495,42 @@ lodash-es@^4.17.15: resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.15.tgz#21bd96839354412f23d7a10340e5eac6ee455d78" integrity sha512-rlrc3yU3+JNOpZ9zj5pQtxnx2THmvRykwL4Xlxoa8I9lHBlVbbyPhgyPMioxVZ4NqyxaVVtaJnzsyOidQIhyyQ== +lodash.debounce@^4.0.8: + version "4.0.8" + resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" + integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168= + lodash.get@^4.0.0: version "4.4.2" resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk= -lodash.isequal@^4.0.0: +lodash.isempty@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/lodash.isempty/-/lodash.isempty-4.4.0.tgz#6f86cbedd8be4ec987be9aaf33c9684db1b31e7e" + integrity sha1-b4bL7di+TsmHvpqvM8loTbGzHn4= + +lodash.isequal@^4.0.0, lodash.isequal@^4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0" integrity sha1-QVxEePK8wwEgwizhDtMib30+GOA= +lodash.kebabcase@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz#8489b1cb0d29ff88195cceca448ff6d6cc295c36" + integrity sha1-hImxyw0p/4gZXM7KRI/21swpXDY= + lodash.sortby@^4.7.0: version "4.7.0" resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" integrity sha1-7dFMgk4sycHgsKG0K7UhBRakJDg= -lodash@^4.17.15, lodash@~4.17.15: +lodash.unionwith@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/lodash.unionwith/-/lodash.unionwith-4.6.0.tgz#74d140b5ca8146e6c643c3724f5152538d9ac1f0" + integrity sha1-dNFAtcqBRubGQ8NyT1FSU42awfA= + +lodash@^4.17.14, lodash@^4.17.15, lodash@~4.17.15: version "4.17.15" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== @@ -1132,6 +1580,11 @@ memorystream@^0.3.1: resolved "https://registry.yarnpkg.com/memorystream/-/memorystream-0.3.1.tgz#86d7090b30ce455d63fbae12dda51a47ddcaf9b2" integrity sha1-htcJCzDORV1j+64S3aUaR93K+bI= +merge-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" + integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== + mime-db@1.40.0: version "1.40.0" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.40.0.tgz#a65057e998db090f732a68f6c276d387d4126c32" @@ -1144,6 +1597,11 @@ mime-types@^2.1.12, mime-types@~2.1.19: dependencies: mime-db "1.40.0" +mimic-fn@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" + integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== + minimatch@3.0.4, minimatch@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" @@ -1166,7 +1624,7 @@ mixed-map@^0.1.0: resolved "https://registry.yarnpkg.com/mixed-map/-/mixed-map-0.1.1.tgz#f3407171d13ed784ae3c1c6bb4f2c1233b4529e6" integrity sha512-k1bGC1J3EgXbvKM4qWUVygoF5BxZrL9pKprEXEL5l8p7lePA01IllCvpMnpEs5odne3JFc+efayDEPdX2OIxwg== -mkdirp@0.5.1: +mkdirp@0.5.1, mkdirp@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= @@ -1220,6 +1678,16 @@ multikey-map@^0.2.0: dependencies: mixed-map "^0.1.0" +mute-stream@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" + integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= + nice-try@^1.0.4: version "1.0.5" resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" @@ -1263,6 +1731,13 @@ npm-run-all@^4.1.5: shell-quote "^1.6.1" string.prototype.padend "^3.0.0" +npm-run-path@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-3.1.0.tgz#7f91be317f6a466efed3c9f2980ad8a4ee8b0fa5" + integrity sha512-Dbl4A/VfiVGLgQv29URL9xshU8XDY1GeLy+fsaZ1AA8JDSfjvr5P5+pzRbWqRSBxk6/DW7MIh8lTM/PaGnP2kg== + dependencies: + path-key "^3.0.0" + nwsapi@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.0.tgz#204879a9e3d068ff2a55139c2c772780681a38b7" @@ -1301,13 +1776,20 @@ object.getownpropertydescriptors@^2.0.3: define-properties "^1.1.2" es-abstract "^1.5.1" -once@^1.3.0: +once@^1.3.0, once@^1.3.1, once@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= dependencies: wrappy "1" +onetime@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.0.tgz#fff0f3c91617fe62bb50189636e99ac8a6df7be5" + integrity sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q== + dependencies: + mimic-fn "^2.1.0" + optionator@^0.8.1: version "0.8.2" resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" @@ -1320,6 +1802,28 @@ optionator@^0.8.1: type-check "~0.3.2" wordwrap "~1.0.0" +optionator@^0.8.2, optionator@^0.8.3: + version "0.8.3" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" + integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.6" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + word-wrap "~1.2.3" + +os-tmpdir@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= + +p-finally@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-2.0.1.tgz#bd6fcaa9c559a096b680806f4d657b3f0f240561" + integrity sha512-vpm09aKwq6H9phqRQzecoDpD8TmVyGw70qmWlyq5onxY7tqyTTFVvxMykxQSQKILBSFlbXpypIw2T1Ml7+DDtw== + p-limit@^2.0.0, p-limit@^2.2.0: version "2.2.1" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.2.1.tgz#aa07a788cc3151c939b5131f63570f0dd2009537" @@ -1346,6 +1850,13 @@ p-try@^2.0.0: resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== +parent-module@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" + integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== + dependencies: + callsites "^3.0.0" + parse-json@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" @@ -1379,6 +1890,11 @@ path-key@^2.0.1: resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A= +path-key@^3.0.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== + path-key@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.0.tgz#99a10d870a803bdd5ee6f0470e58dfcd2f9a54d3" @@ -1401,7 +1917,7 @@ performance-now@^2.1.0: resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= -picomatch@^2.0.4: +picomatch@^2.0.4, picomatch@^2.0.7: version "2.2.1" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.1.tgz#21bac888b6ed8601f831ce7816e335bc779f0a4a" integrity sha512-ISBaA8xQNmwELC7eOjqFKMESB2VIqt4PPDD0nsS95b/9dZXvVKOlz9keMSnoGGKcOHXfTvDD6WMaRoSc9UuhRA== @@ -1428,11 +1944,24 @@ prelude-ls@~1.1.2: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= +progress@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" + integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== + psl@^1.1.24, psl@^1.1.28: version "1.4.0" resolved "https://registry.yarnpkg.com/psl/-/psl-1.4.0.tgz#5dd26156cdb69fa1fdb8ab1991667d3f80ced7c2" integrity sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw== +pump@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" + integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== + dependencies: + end-of-stream "^1.1.0" + once "^1.3.1" + punycode@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" @@ -1464,11 +1993,28 @@ readdirp@~3.2.0: dependencies: picomatch "^2.0.4" +readdirp@~3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.3.0.tgz#984458d13a1e42e2e9f5841b129e162f369aff17" + integrity sha512-zz0pAkSPOXXm1viEwygWIPSPkcBYjW1xU5j/JBh5t9bGCJwa6f9+BJa6VaB2g+b55yVrmXzqkyLf4xaWYM0IkQ== + dependencies: + picomatch "^2.0.7" + regenerator-runtime@^0.13.2: version "0.13.3" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz#7cf6a77d8f5c6f60eb73c5fc1955b2ceb01e6bf5" integrity sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw== +regexpp@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.1.tgz#8d19d31cf632482b589049f8281f93dbcba4d07f" + integrity sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw== + +regexpp@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.0.0.tgz#dd63982ee3300e67b41c1956f850aa680d9d330e" + integrity sha512-Z+hNr7RAVWxznLPuA7DIh8UNX1j9CDrUQxskw9IrBE1Dxue2lyXT+shqEIeLUjrokxIP8CMy1WkjgG3rTsd5/g== + request-promise-core@1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.3.tgz#e9a3c081b51380dfea677336061fea879a829ee9" @@ -1521,6 +2067,11 @@ require-main-filename@^2.0.0: resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== +resolve-from@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" + integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== + resolve@1.12.0, resolve@^1.10.0, resolve@^1.11.0, resolve@^1.11.1: version "1.12.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.12.0.tgz#3fc644a35c84a48554609ff26ec52b66fa577df6" @@ -1535,6 +2086,21 @@ resolve@1.8.1: dependencies: path-parse "^1.0.5" +restore-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" + integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== + dependencies: + onetime "^5.1.0" + signal-exit "^3.0.2" + +rimraf@2.6.3: + version "2.6.3" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" + integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== + dependencies: + glob "^7.1.3" + rimraf@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.1.tgz#48d3d4cb46c80d388ab26cd61b1b466ae9ae225a" @@ -1598,6 +2164,20 @@ rollup@^1.31.0: "@types/node" "*" acorn "^7.1.0" +run-async@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0" + integrity sha1-A3GrSuC91yDUFm19/aZP96RFpsA= + dependencies: + is-promise "^2.1.0" + +rxjs@^6.5.3: + version "6.5.4" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.4.tgz#e0777fe0d184cec7872df147f303572d414e211c" + integrity sha512-naMQXcgEo3csAEGvw/NydRA0fuS2nDZJiw1YUWFKU7aPPAPGZEsD4Iimit96qwCieH6y614MCLYwdkrWx7z/7Q== + dependencies: + tslib "^1.9.0" + safe-buffer@^5.0.1, safe-buffer@^5.1.2: version "5.2.0" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.0.tgz#b74daec49b1148f88c64b68d49b1e815c1f2f519" @@ -1620,7 +2200,7 @@ saxes@^4.0.2: resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== -semver@^6.0.0: +semver@^6.0.0, semver@^6.1.2, semver@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== @@ -1664,6 +2244,20 @@ shell-quote@^1.6.1: resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.2.tgz#67a7d02c76c9da24f99d20808fcaded0e0e04be2" integrity sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg== +signal-exit@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" + integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0= + +slice-ansi@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.1.0.tgz#cacd7693461a637a5788d92a7dd4fba068e81636" + integrity sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ== + dependencies: + ansi-styles "^3.2.0" + astral-regex "^1.0.0" + is-fullwidth-code-point "^2.0.0" + source-map-support@^0.5.13, source-map-support@^0.5.6: version "0.5.16" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.16.tgz#0ae069e7fe3ba7538c64c98515e35339eac5a042" @@ -1750,6 +2344,15 @@ string-width@^3.0.0, string-width@^3.1.0: is-fullwidth-code-point "^2.0.0" strip-ansi "^5.1.0" +string-width@^4.1.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5" + integrity sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.0" + string.prototype.padend@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/string.prototype.padend/-/string.prototype.padend-3.0.0.tgz#f3aaef7c1719f170c5eab1c32bf780d96e21f2f0" @@ -1789,16 +2392,33 @@ strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: dependencies: ansi-regex "^4.1.0" +strip-ansi@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" + integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w== + dependencies: + ansi-regex "^5.0.0" + strip-bom@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM= +strip-final-newline@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" + integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== + strip-json-comments@2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= +strip-json-comments@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.0.1.tgz#85713975a91fb87bf1b305cca77395e40d2a64a7" + integrity sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw== + supports-color@6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-6.0.0.tgz#76cfe742cf1f41bb9b1c29ad03068c05b4c0e40a" @@ -1818,11 +2438,38 @@ symbol-tree@^3.2.2: resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== +table@^5.2.3: + version "5.4.6" + resolved "https://registry.yarnpkg.com/table/-/table-5.4.6.tgz#1292d19500ce3f86053b05f0e8e7e4a3bb21079e" + integrity sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug== + dependencies: + ajv "^6.10.2" + lodash "^4.17.14" + slice-ansi "^2.1.0" + string-width "^3.0.0" + +text-table@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" + integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= + +through@^2.3.6: + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= + timsort@~0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4" integrity sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q= +tmp@^0.0.33: + version "0.0.33" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" + integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== + dependencies: + os-tmpdir "~1.0.2" + to-regex-range@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" @@ -1873,11 +2520,18 @@ ts-node@^8.6.2: source-map-support "^0.5.6" yn "3.1.1" -tslib@1.10.0: +tslib@1.10.0, tslib@^1.8.1, tslib@^1.9.0: version "1.10.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a" integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ== +tsutils@^3.17.1: + version "3.17.1" + resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.17.1.tgz#ed719917f11ca0dee586272b2ac49e015a2dd759" + integrity sha512-kzeQ5B8H3w60nFY2g8cJIuH7JDpsALXySGtwGJ0p2LSjLgay3NdIpqq5SoOBe46bKDW2iq25irHCr8wjomUS2g== + dependencies: + tslib "^1.8.1" + tunnel-agent@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" @@ -1897,6 +2551,11 @@ type-check@~0.3.2: dependencies: prelude-ls "~1.1.2" +type-fest@^0.8.1: + version "0.8.1" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" + integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== + typescript@^3.7.5: version "3.7.5" resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.5.tgz#0692e21f65fd4108b9330238aac11dd2e177a1ae" @@ -1924,6 +2583,11 @@ uuid@^3.3.2: resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.3.tgz#4568f0216e78760ee1dbf3a4d2cf53e224112866" integrity sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ== +v8-compile-cache@^2.0.3: + version "2.1.0" + resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.1.0.tgz#e14de37b31a6d194f5690d67efc4e7f6fc6ab30e" + integrity sha512-usZBT3PW+LOjM25wbqIlZwPeJV+3OSz3M1k1Ws8snlW39dZyYL9lOGC5FgPVHfk0jKmjiDV8Z0mIbVQPiwFs7g== + validate-npm-package-license@^3.0.1: version "3.0.4" resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" @@ -2017,6 +2681,11 @@ wide-align@1.1.3: dependencies: string-width "^1.0.2 || 2" +word-wrap@~1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" + integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== + wordwrap@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" @@ -2036,6 +2705,13 @@ wrappy@1: resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= +write@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/write/-/write-1.0.3.tgz#0800e14523b923a387e415123c865616aae0f5c3" + integrity sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig== + dependencies: + mkdirp "^0.5.1" + ws@^7.2.1: version "7.2.1" resolved "https://registry.yarnpkg.com/ws/-/ws-7.2.1.tgz#03ed52423cd744084b2cf42ed197c8b65a936b8e" From 2ddefa9b6ba631cf8b5482df800747847b35133c Mon Sep 17 00:00:00 2001 From: Jack Works Date: Fri, 7 Feb 2020 15:38:39 +0800 Subject: [PATCH 64/80] chore: upgrade ci node version --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 55e0dcc..b0d93af 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,7 @@ version: 2 jobs: build: docker: - - image: circleci/node:11.0 + - image: circleci/node:13.0 working_directory: ~/repo steps: # build holoflows-kit @@ -42,7 +42,7 @@ jobs: destination: /esmodule.zip test: docker: - - image: circleci/node:11.0 + - image: circleci/node:13.0 working_directory: ~/repo steps: - checkout From 5b2113f7bfc2e235ae6d6987d4d44c4df61ab5fb Mon Sep 17 00:00:00 2001 From: Jack Works Date: Fri, 7 Feb 2020 16:36:10 +0800 Subject: [PATCH 65/80] fix: nullish chain in get context --- src/Extension/Context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Extension/Context.ts b/src/Extension/Context.ts index 6e15a7a..d625c00 100644 --- a/src/Extension/Context.ts +++ b/src/Extension/Context.ts @@ -15,7 +15,7 @@ export function GetContext(): Contexts { if (typeof location === 'undefined') return 'unknown' if (typeof browser !== 'undefined' && browser !== null) { const scheme = location.protocol.match('-extension') - const backgroundURL = browser.extension?.getBackgroundPage()?.location?.href + const backgroundURL = browser.extension?.getBackgroundPage?.()?.location?.href if (scheme || location.hostname === 'localhost') { if ( backgroundURL === location.href || From cd963b1d4a9ef1a6023be11e24deb3f17ec0b2ff Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 10 Feb 2020 11:22:33 +0000 Subject: [PATCH 66/80] chore(deps-dev): bump rimraf from 3.0.1 to 3.0.2 Bumps [rimraf](https://github.com/isaacs/rimraf) from 3.0.1 to 3.0.2. - [Release notes](https://github.com/isaacs/rimraf/releases) - [Changelog](https://github.com/isaacs/rimraf/blob/master/CHANGELOG.md) - [Commits](https://github.com/isaacs/rimraf/compare/v3.0.1...v3.0.2) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/yarn.lock b/yarn.lock index bb0d4b9..4a917a4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1080,19 +1080,7 @@ glob@7.1.3: once "^1.3.0" path-is-absolute "^1.0.0" -glob@^7.1.3: - version "7.1.4" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" - integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@^7.1.6: +glob@^7.1.3, glob@^7.1.6: version "7.1.6" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== @@ -2102,9 +2090,9 @@ rimraf@2.6.3: glob "^7.1.3" rimraf@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.1.tgz#48d3d4cb46c80d388ab26cd61b1b466ae9ae225a" - integrity sha512-IQ4ikL8SjBiEDZfk+DFVwqRK8md24RWMEJkdSlgNLkyyAImcjf8SWvU1qFMDOb4igBClbTQ/ugPqXcRwdFTxZw== + version "3.0.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== dependencies: glob "^7.1.3" From f720b3e20f6a6f93cb9b0a65b22978d1fc2168b3 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 17 Feb 2020 11:24:19 +0000 Subject: [PATCH 67/80] chore(deps-dev): bump jsdom from 16.1.0 to 16.2.0 Bumps [jsdom](https://github.com/jsdom/jsdom) from 16.1.0 to 16.2.0. - [Release notes](https://github.com/jsdom/jsdom/releases) - [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md) - [Commits](https://github.com/jsdom/jsdom/compare/16.1.0...16.2.0) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/yarn.lock b/yarn.lock index 4a917a4..8f6a00b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -205,7 +205,7 @@ abab@^2.0.3: resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.3.tgz#623e2075e02eb2d3f2475e49f99c91846467907a" integrity sha512-tsFzPpcttalNjFBCFMqsKYQcWxxen1pgJR56by//QwvJc4/OUS3kPOOttx2tSIfjsylB0pYu7f5D3K1RCxUnUg== -acorn-globals@^4.3.2: +acorn-globals@^4.3.4: version "4.3.4" resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-4.3.4.tgz#9fa1926addc11c97308c4e66d7add0d40c3272e7" integrity sha512-clfQEh21R+D0leSbUdWf3OcfqyaCSAQ8Ryq00bofSekfr9W8u1jyYZo6ir0xu9Gtcf7BjcHJpnbZH7JOCpP60A== @@ -569,7 +569,7 @@ cssom@~0.3.6: resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== -cssstyle@^2.1.0: +cssstyle@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.2.0.tgz#e4c44debccd6b7911ed617a4395e5754bba59992" integrity sha512-sEb3XFPx3jNnCAMtqrXPDeSgQr+jojtCeNf8cvMNMh1cG970+lljssvQDzPq6lmmJu2Vhqood/gtEomBiHOGnA== @@ -724,10 +724,10 @@ escape-string-regexp@1.0.5, escape-string-regexp@^1.0.5: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= -escodegen@^1.12.1: - version "1.13.0" - resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.13.0.tgz#c7adf9bd3f3cc675bb752f202f79a720189cab29" - integrity sha512-eYk2dCkxR07DsHA/X2hRBj0CFAZeri/LyDMc0C8JT1Hqi6JnVpMhJ7XFITbb0+yZS3lVkaPL2oCkZ3AVmeVbMw== +escodegen@^1.13.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.1.tgz#ba01d0c8278b5e95a9a45350142026659027a457" + integrity sha512-Bmt7NcRySdIfNPfU2ZoXDrrXsG9ZjvDxcAlMfDUgRBjLOWTuIACXPBFJH7Z+cLb40JeQco5toikyc9t9P8E9SQ== dependencies: esprima "^4.0.1" estraverse "^4.2.0" @@ -1286,6 +1286,11 @@ is-number@^7.0.0: resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== +is-potential-custom-element-name@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.0.tgz#0c52e54bcca391bb2c494b21e8626d7336c6e397" + integrity sha1-DFLlS8yjkbssSUsh6GJtczbG45c= + is-promise@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" @@ -1361,26 +1366,27 @@ jsdom-global@^3.0.2: integrity sha1-a9KZwTsMRiay2iwDk81DhdYGrLk= jsdom@^16.1.0: - version "16.1.0" - resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.1.0.tgz#7e245db708ee00302947be7beb88a2ffa587ad2b" - integrity sha512-kpIcNAuZYc/L17WADOOHslz/q5+3SipP/iRb3j6zd1zQ6pFJubLi/VCdD3NqBpj/IKKK4YXny1vv44rbEUSGFg== + version "16.2.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.2.0.tgz#fc171c305635046c100708b1c7ea7820ba015164" + integrity sha512-6VaW3UWyKbm9DFVIAgTfhuwnvqiqlRYNg5Rk6dINTVoZT0eKz+N86vQZr+nqt1ny1lSB1TWZJWSEWQAfu8oTpA== dependencies: abab "^2.0.3" acorn "^7.1.0" - acorn-globals "^4.3.2" + acorn-globals "^4.3.4" cssom "^0.4.4" - cssstyle "^2.1.0" + cssstyle "^2.2.0" data-urls "^2.0.0" decimal.js "^10.2.0" domexception "^2.0.1" - escodegen "^1.12.1" + escodegen "^1.13.0" html-encoding-sniffer "^2.0.0" + is-potential-custom-element-name "^1.0.0" nwsapi "^2.2.0" parse5 "5.1.1" request "^2.88.0" request-promise-native "^1.0.8" saxes "^4.0.2" - symbol-tree "^3.2.2" + symbol-tree "^3.2.4" tough-cookie "^3.0.1" w3c-hr-time "^1.0.1" w3c-xmlserializer "^2.0.0" @@ -2421,7 +2427,7 @@ supports-color@^5.3.0: dependencies: has-flag "^3.0.0" -symbol-tree@^3.2.2: +symbol-tree@^3.2.4: version "3.2.4" resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== From 16b4f7486526de927d60565a842d9f8a4825db97 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 17 Feb 2020 11:24:43 +0000 Subject: [PATCH 68/80] chore(deps-dev): bump rollup-plugin-typescript2 from 0.25.3 to 0.26.0 Bumps [rollup-plugin-typescript2](https://github.com/ezolenko/rollup-plugin-typescript2) from 0.25.3 to 0.26.0. - [Release notes](https://github.com/ezolenko/rollup-plugin-typescript2/releases) - [Commits](https://github.com/ezolenko/rollup-plugin-typescript2/compare/0.25.3...0.26.0) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- yarn.lock | 39 ++++++++++++++++----------------------- 2 files changed, 17 insertions(+), 24 deletions(-) diff --git a/package.json b/package.json index 71504b1..ef6463f 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "rollup": "^1.31.0", "rollup-plugin-commonjs": "^10.1.0", "rollup-plugin-node-resolve": "^5.2.0", - "rollup-plugin-typescript2": "^0.25.2", + "rollup-plugin-typescript2": "^0.26.0", "source-map-support": "^0.5.13", "ts-node": "^8.6.2", "typescript": "^3.7.5", diff --git a/yarn.lock b/yarn.lock index 8f6a00b..f0e9cc5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -945,10 +945,10 @@ fill-range@^7.0.1: dependencies: to-regex-range "^5.0.1" -find-cache-dir@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.0.0.tgz#cd4b7dd97b7185b7e17dbfe2d6e4115ee3eeb8fc" - integrity sha512-t7ulV1fmbxh5G9l/492O1p5+EBbr3uwpt6odhFTMc+nWyhmbloe+ja9BZ8pIBtqFWhOmCWVjx+pTW4zDkFoclw== +find-cache-dir@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.2.0.tgz#e7fe44c1abc1299f516146e563108fd1006c1874" + integrity sha512-1JKclkYYsf1q9WIJKLZa9S9muC+08RIjzAlLrK4QcYLJMS6mk9yombQ9qf+zJ7H9LS800k0s44L4sDq9VYzqyg== dependencies: commondir "^1.0.1" make-dir "^3.0.0" @@ -2066,10 +2066,10 @@ resolve-from@^4.0.0: resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== -resolve@1.12.0, resolve@^1.10.0, resolve@^1.11.0, resolve@^1.11.1: - version "1.12.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.12.0.tgz#3fc644a35c84a48554609ff26ec52b66fa577df6" - integrity sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w== +resolve@1.15.1, resolve@^1.10.0, resolve@^1.11.0, resolve@^1.11.1: + version "1.15.1" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.15.1.tgz#27bdcdeffeaf2d6244b95bb0f9f4b4653451f3e8" + integrity sha512-84oo6ZTtoTUpjgNEr5SJyzQhzL72gaRodsSfyxC/AXRvwu0Yse9H8eF9IpGo7b8YetZhlI6v7ZQ6bKBFV/6S7w== dependencies: path-parse "^1.0.6" @@ -2124,25 +2124,18 @@ rollup-plugin-node-resolve@^5.2.0: resolve "^1.11.1" rollup-pluginutils "^2.8.1" -rollup-plugin-typescript2@^0.25.2: - version "0.25.3" - resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.25.3.tgz#a5fb2f0f85488789334ce540abe6c7011cbdf40f" - integrity sha512-ADkSaidKBovJmf5VBnZBZe+WzaZwofuvYdzGAKTN/J4hN7QJCFYAq7IrH9caxlru6T5qhX41PNFS1S4HqhsGQg== +rollup-plugin-typescript2@^0.26.0: + version "0.26.0" + resolved "https://registry.yarnpkg.com/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.26.0.tgz#cee2b44d51d9623686656d76dc30a73c4de91672" + integrity sha512-lUK7XZVG77tu8dmv1L/0LZFlavED/5Yo6e4iMMl6fdox/yKdj4IFRRPPJEXNdmEaT1nDQQeCi7b5IwKHffMNeg== dependencies: - find-cache-dir "^3.0.0" + find-cache-dir "^3.2.0" fs-extra "8.1.0" - resolve "1.12.0" - rollup-pluginutils "2.8.1" + resolve "1.15.1" + rollup-pluginutils "2.8.2" tslib "1.10.0" -rollup-pluginutils@2.8.1: - version "2.8.1" - resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.8.1.tgz#8fa6dd0697344938ef26c2c09d2488ce9e33ce97" - integrity sha512-J5oAoysWar6GuZo0s+3bZ6sVZAC0pfqKz68De7ZgDi5z63jOVZn1uJL/+z1jeKHNbGII8kAyHF5q8LnxSX5lQg== - dependencies: - estree-walker "^0.6.1" - -rollup-pluginutils@^2.8.1: +rollup-pluginutils@2.8.2, rollup-pluginutils@^2.8.1: version "2.8.2" resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz#72f2af0748b592364dbd3389e600e5a9444a351e" integrity sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ== From 22590ed99ba9f2c18697ce17da1cc0bcd0eb5de6 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 17 Feb 2020 11:26:06 +0000 Subject: [PATCH 69/80] chore(deps-dev): bump rollup from 1.31.0 to 1.31.1 Bumps [rollup](https://github.com/rollup/rollup) from 1.31.0 to 1.31.1. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v1.31.0...v1.31.1) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index f0e9cc5..b2b7e74 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2143,9 +2143,9 @@ rollup-pluginutils@2.8.2, rollup-pluginutils@^2.8.1: estree-walker "^0.6.1" rollup@^1.31.0: - version "1.31.0" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.31.0.tgz#e2a87212e96aa7850f3eb53fdd02cf89f2d2fe9a" - integrity sha512-9C6ovSyNeEwvuRuUUmsTpJcXac1AwSL1a3x+O5lpmQKZqi5mmrjauLeqIjvREC+yNRR8fPdzByojDng+af3nVw== + version "1.31.1" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.31.1.tgz#4170d6f87148d46e5fbe29b493f8f3ea3453c96f" + integrity sha512-2JREN1YdrS/kpPzEd33ZjtuNbOuBC3ePfuZBdKEybvqcEcszW1ckyVqzcEiEe0nE8sqHK+pbJg+PsAgRJ8+1dg== dependencies: "@types/estree" "*" "@types/node" "*" From 52669d14a5c7abd7ac7f1c2362a2ea6521629685 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 17 Feb 2020 11:25:49 +0000 Subject: [PATCH 70/80] chore(deps-dev): bump @typescript-eslint/parser from 2.19.0 to 2.19.2 Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.19.0 to 2.19.2. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.19.2/packages/parser) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/yarn.lock b/yarn.lock index b2b7e74..8be504d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -177,14 +177,23 @@ "@typescript-eslint/typescript-estree" "2.19.0" eslint-scope "^5.0.0" +"@typescript-eslint/experimental-utils@2.19.2": + version "2.19.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.19.2.tgz#4611d44cf0f0cb460c26aa7676fc0a787281e233" + integrity sha512-B88QuwT1wMJR750YvTJBNjMZwmiPpbmKYLm1yI7PCc3x0NariqPwqaPsoJRwU9DmUi0cd9dkhz1IqEnwfD+P1A== + dependencies: + "@types/json-schema" "^7.0.3" + "@typescript-eslint/typescript-estree" "2.19.2" + eslint-scope "^5.0.0" + "@typescript-eslint/parser@^2.19.0": - version "2.19.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.19.0.tgz#912160d9425395d09857dcd5382352bc98be11ae" - integrity sha512-s0jZoxAWjHnuidbbN7aA+BFVXn4TCcxEVGPV8lWMxZglSs3NRnFFAlL+aIENNmzB2/1jUJuySi6GiM6uACPmpg== + version "2.19.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.19.2.tgz#21f42c0694846367e7d6a907feb08ab2f89c0879" + integrity sha512-8uwnYGKqX9wWHGPGdLB9sk9+12sjcdqEEYKGgbS8A0IvYX59h01o8os5qXUHMq2na8vpDRaV0suTLM7S8wraTA== dependencies: "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "2.19.0" - "@typescript-eslint/typescript-estree" "2.19.0" + "@typescript-eslint/experimental-utils" "2.19.2" + "@typescript-eslint/typescript-estree" "2.19.2" eslint-visitor-keys "^1.1.0" "@typescript-eslint/typescript-estree@2.19.0": @@ -200,6 +209,19 @@ semver "^6.3.0" tsutils "^3.17.1" +"@typescript-eslint/typescript-estree@2.19.2": + version "2.19.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.19.2.tgz#67485b00172f400474d243c6c0be27581a579350" + integrity sha512-Xu/qa0MDk6upQWqE4Qy2X16Xg8Vi32tQS2PR0AvnT/ZYS4YGDvtn2MStOh5y8Zy2mg4NuL06KUHlvCh95j9C6Q== + dependencies: + debug "^4.1.1" + eslint-visitor-keys "^1.1.0" + glob "^7.1.6" + is-glob "^4.0.1" + lodash "^4.17.15" + semver "^6.3.0" + tsutils "^3.17.1" + abab@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.3.tgz#623e2075e02eb2d3f2475e49f99c91846467907a" From 671b484703ca3eed02c37a6bc645b18d49163426 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 17 Feb 2020 11:25:34 +0000 Subject: [PATCH 71/80] chore(deps-dev): bump @typescript-eslint/eslint-plugin Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.19.0 to 2.19.2. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.19.2/packages/eslint-plugin) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yarn.lock b/yarn.lock index 8be504d..f3dcf7e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -158,11 +158,11 @@ "@types/node" "*" "@typescript-eslint/eslint-plugin@^2.19.0": - version "2.19.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.19.0.tgz#bf743448a4633e4b52bee0c40148ba072ab3adbd" - integrity sha512-u7IcQ9qwsB6U806LupZmINRnQjC+RJyv36sV/ugaFWMHTbFm/hlLTRx3gGYJgHisxcGSTnf+I/fPDieRMhPSQQ== + version "2.19.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.19.2.tgz#e279aaae5d5c1f2547b4cff99204e1250bc7a058" + integrity sha512-HX2qOq2GOV04HNrmKnTpSIpHjfl7iwdXe3u/Nvt+/cpmdvzYvY0NHSiTkYN257jHnq4OM/yo+OsFgati+7LqJA== dependencies: - "@typescript-eslint/experimental-utils" "2.19.0" + "@typescript-eslint/experimental-utils" "2.19.2" eslint-utils "^1.4.3" functional-red-black-tree "^1.0.1" regexpp "^3.0.0" From 52e91a86e1e85398ccaebbcbc00181331686a9aa Mon Sep 17 00:00:00 2001 From: Septs Date: Wed, 19 Feb 2020 13:53:05 +0800 Subject: [PATCH 72/80] chore: update url --- package.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ef6463f..2b3481e 100644 --- a/package.json +++ b/package.json @@ -4,11 +4,10 @@ "module": "./es/index.js", "main": "./umd/index.js", "typings": "./es/", - "homepage": "https://github.com/project-holoflows/holoflows-kit", + "repository": "https://github.com/DimensionDev/Holoflows-Kit", "bugs": { - "url": "https://github.com/project-holoflows/holoflows-kit/issues" + "url": "https://github.com/DimensionDev/Holoflows-Kit/issues" }, - "readme": "https://github.com/project-holoflows/holoflows-kit/blob/master/README.md", "dependencies": { "async-call-rpc": "^1.0.4", "concurrent-lock": "^1.0.7", From 0c6b3c8d5074421b28948be45616a5a688cbf046 Mon Sep 17 00:00:00 2001 From: Septs Date: Wed, 19 Feb 2020 14:21:30 +0800 Subject: [PATCH 73/80] use env-cmd replace cross-env --- .env.json | 11 +++++++++++ package.json | 8 ++++---- yarn.lock | 44 ++++++++++++++------------------------------ 3 files changed, 29 insertions(+), 34 deletions(-) create mode 100644 .env.json diff --git a/.env.json b/.env.json new file mode 100644 index 0000000..90c361f --- /dev/null +++ b/.env.json @@ -0,0 +1,11 @@ +{ + "production": { + "NODE_ENV": "production" + }, + "development": { + "NODE_ENV": "development" + }, + "test": { + "TS_NODE_COMPILER_OPTIONS": "{\"module\":\"commonjs\"}" + } +} diff --git a/package.json b/package.json index 2b3481e..1ba3aca 100644 --- a/package.json +++ b/package.json @@ -18,10 +18,10 @@ }, "sideEffects": false, "scripts": { - "start": "cross-env NODE_ENV=development npm-run-all --parallel \"start:tsc -- {@}\" start:rollup", + "start": "env-cmd -e development npm-run-all --parallel \"start:tsc -- {@}\" start:rollup", "start:tsc": "tsc --watch", "start:rollup": "rollup -c -w", - "build": "cross-env NODE_ENV=production npm-run-all --parallel clean \"build:tsc -- {@}\" build:rollup", + "build": "env-cmd -e production npm-run-all --parallel clean \"build:tsc -- {@}\" build:rollup", "build:tsc": "tsc", "build:rollup": "rollup -c -m", "eslint": "eslint . --ext .ts,.tsx", @@ -31,7 +31,7 @@ "doc": "npm-run-all --serial build:tsc doc:api doc:md", "doc:api": "api-extractor run --local --verbose", "doc:md": "api-documenter markdown -i temp -o api-documents", - "test": "cross-env TS_NODE_COMPILER_OPTIONS='{ \"module\": \"commonjs\" }' mocha -r ts-node/register/transpile-only -r source-map-support/register -r jsdom-global/register --recursive src/**/*.spec.ts" + "test": "env-cmd -e test mocha -r ts-node/register/transpile-only -r source-map-support/register -r jsdom-global/register --recursive src/**/*.spec.ts" }, "devDependencies": { "@microsoft/api-documenter": "^7.7.12", @@ -41,7 +41,7 @@ "@types/mocha": "^7.0.1", "@typescript-eslint/eslint-plugin": "^2.19.0", "@typescript-eslint/parser": "^2.19.0", - "cross-env": "^7.0.0", + "env-cmd": "^10.1.0", "eslint": "^6.8.0", "eslint-watch": "^6.0.1", "jsdom": "^16.1.0", diff --git a/yarn.lock b/yarn.lock index f3dcf7e..6bc923d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -168,15 +168,6 @@ regexpp "^3.0.0" tsutils "^3.17.1" -"@typescript-eslint/experimental-utils@2.19.0": - version "2.19.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.19.0.tgz#d5ca732f22c009e515ba09fcceb5f2127d841568" - integrity sha512-zwpg6zEOPbhB3+GaQfufzlMUOO6GXCNZq6skk+b2ZkZAIoBhVoanWK255BS1g5x9bMwHpLhX0Rpn5Fc3NdCZdg== - dependencies: - "@types/json-schema" "^7.0.3" - "@typescript-eslint/typescript-estree" "2.19.0" - eslint-scope "^5.0.0" - "@typescript-eslint/experimental-utils@2.19.2": version "2.19.2" resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.19.2.tgz#4611d44cf0f0cb460c26aa7676fc0a787281e233" @@ -196,19 +187,6 @@ "@typescript-eslint/typescript-estree" "2.19.2" eslint-visitor-keys "^1.1.0" -"@typescript-eslint/typescript-estree@2.19.0": - version "2.19.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.19.0.tgz#6bd7310b9827e04756fe712909f26956aac4b196" - integrity sha512-n6/Xa37k0jQdwpUszffi19AlNbVCR0sdvCs3DmSKMD7wBttKY31lhD2fug5kMD91B2qW4mQldaTEc1PEzvGu8w== - dependencies: - debug "^4.1.1" - eslint-visitor-keys "^1.1.0" - glob "^7.1.6" - is-glob "^4.0.1" - lodash "^4.17.15" - semver "^6.3.0" - tsutils "^3.17.1" - "@typescript-eslint/typescript-estree@2.19.2": version "2.19.2" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.19.2.tgz#67485b00172f400474d243c6c0be27581a579350" @@ -527,6 +505,11 @@ commander@^2.7.1: resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422" integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ== +commander@^4.0.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068" + integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA== + commondir@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" @@ -554,13 +537,6 @@ core-util-is@1.0.2: resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= -cross-env@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.0.tgz#5a3b2ddce51ec713ea58f2fb79ce22e65b4f5479" - integrity sha512-rV6M9ldNgmwP7bx5u6rZsTbYidzwvrwIYZnT08hSGLcQCcggofgFW+sNe7IhA1SRauPS0QuLbbX+wdNtpqE5CQ== - dependencies: - cross-spawn "^7.0.1" - cross-spawn@^6.0.5: version "6.0.5" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" @@ -572,7 +548,7 @@ cross-spawn@^6.0.5: shebang-command "^1.2.0" which "^1.2.9" -cross-spawn@^7.0.0, cross-spawn@^7.0.1: +cross-spawn@^7.0.0: version "7.0.1" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.1.tgz#0ab56286e0f7c24e153d04cc2aa027e43a9a5d14" integrity sha512-u7v4o84SwFpD32Z8IIcPZ6z1/ie24O6RU3RbtL5Y316l3KuHVPx9ItBgWQ6VlfAFnRnTtMUrsQ9MUUTuEZjogg== @@ -709,6 +685,14 @@ end-of-stream@^1.1.0: dependencies: once "^1.4.0" +env-cmd@^10.1.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/env-cmd/-/env-cmd-10.1.0.tgz#c7f5d3b550c9519f137fdac4dd8fb6866a8c8c4b" + integrity sha512-mMdWTT9XKN7yNth/6N6g2GuKuJTsKMDHlQFUDacb/heQRRWOTIZ42t1rMHnQu4jYxU1ajdTeJM+9eEETlqToMA== + dependencies: + commander "^4.0.0" + cross-spawn "^7.0.0" + error-ex@^1.3.1: version "1.3.2" resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" From 52898887fbe7913228d25497a0e64ebd86391afc Mon Sep 17 00:00:00 2001 From: Septs Date: Wed, 19 Feb 2020 14:22:11 +0800 Subject: [PATCH 74/80] rename filename --- .env.json => .env-cmdrc.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .env.json => .env-cmdrc.json (100%) diff --git a/.env.json b/.env-cmdrc.json similarity index 100% rename from .env.json rename to .env-cmdrc.json From c8feb0bf506a90fadf9a63e43f24d5df257f01d0 Mon Sep 17 00:00:00 2001 From: Sun Yi-Ran Date: Fri, 28 Feb 2020 15:13:48 +0800 Subject: [PATCH 75/80] fix: getTabOrCreate not correctly update tab --- src/Extension/AutomatedTabTask.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Extension/AutomatedTabTask.ts b/src/Extension/AutomatedTabTask.ts index 527cf4b..cc6da15 100644 --- a/src/Extension/AutomatedTabTask.ts +++ b/src/Extension/AutomatedTabTask.ts @@ -304,10 +304,7 @@ async function getTabOrCreate( pinned: boolean, ) { if (typeof openInCurrentTab === 'number') { - if (needRedirect) { - // TODO: read the api - browser.tabs.executeScript(openInCurrentTab, { code: 'location.href = ' + url }) - } + await browser.tabs.update(openInCurrentTab, { url: needRedirect ? url : undefined, active, pinned }) return openInCurrentTab } // Create a new tab From 91041190f928064d3f433a3ea6d34defb3e2e663 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2020 11:24:46 +0000 Subject: [PATCH 76/80] chore(deps-dev): bump typescript from 3.7.5 to 3.8.3 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.7.5 to 3.8.3. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v3.7.5...v3.8.3) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 6bc923d..781d203 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2550,9 +2550,9 @@ type-fest@^0.8.1: integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== typescript@^3.7.5: - version "3.7.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.5.tgz#0692e21f65fd4108b9330238aac11dd2e177a1ae" - integrity sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw== + version "3.8.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.3.tgz#409eb8544ea0335711205869ec458ab109ee1061" + integrity sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w== typescript@~3.7.2: version "3.7.4" From 1e0af0b153cb4e909cd244958f5d0e3582a52abf Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2020 11:25:52 +0000 Subject: [PATCH 77/80] chore(deps-dev): bump rollup from 1.31.1 to 1.32.0 Bumps [rollup](https://github.com/rollup/rollup) from 1.31.1 to 1.32.0. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v1.31.1...v1.32.0) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 781d203..32c221d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2149,9 +2149,9 @@ rollup-pluginutils@2.8.2, rollup-pluginutils@^2.8.1: estree-walker "^0.6.1" rollup@^1.31.0: - version "1.31.1" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.31.1.tgz#4170d6f87148d46e5fbe29b493f8f3ea3453c96f" - integrity sha512-2JREN1YdrS/kpPzEd33ZjtuNbOuBC3ePfuZBdKEybvqcEcszW1ckyVqzcEiEe0nE8sqHK+pbJg+PsAgRJ8+1dg== + version "1.32.0" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-1.32.0.tgz#c65ce134850aca1ce595fcac07d1dc5d53bf227c" + integrity sha512-ab2tF5pdDqm2zuI8j02ceyrJSScl9V2C24FgWQ1v1kTFTu1UrG5H0hpP++mDZlEFyZX4k0chtGEHU2i+pAzBgA== dependencies: "@types/estree" "*" "@types/node" "*" From f72a133d1845f4124095d50ba44b45c724adf953 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2020 11:26:11 +0000 Subject: [PATCH 78/80] chore(deps-dev): bump @typescript-eslint/parser from 2.19.2 to 2.21.0 Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.19.2 to 2.21.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.21.0/packages/parser) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/yarn.lock b/yarn.lock index 32c221d..6c3c8bc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -177,14 +177,23 @@ "@typescript-eslint/typescript-estree" "2.19.2" eslint-scope "^5.0.0" +"@typescript-eslint/experimental-utils@2.21.0": + version "2.21.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.21.0.tgz#71de390a3ec00b280b69138d80733406e6e86bfa" + integrity sha512-olKw9JP/XUkav4lq0I7S1mhGgONJF9rHNhKFn9wJlpfRVjNo3PPjSvybxEldvCXnvD+WAshSzqH5cEjPp9CsBA== + dependencies: + "@types/json-schema" "^7.0.3" + "@typescript-eslint/typescript-estree" "2.21.0" + eslint-scope "^5.0.0" + "@typescript-eslint/parser@^2.19.0": - version "2.19.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.19.2.tgz#21f42c0694846367e7d6a907feb08ab2f89c0879" - integrity sha512-8uwnYGKqX9wWHGPGdLB9sk9+12sjcdqEEYKGgbS8A0IvYX59h01o8os5qXUHMq2na8vpDRaV0suTLM7S8wraTA== + version "2.21.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.21.0.tgz#4f200995517c3d5fc5ef51b17527bc948992e438" + integrity sha512-VrmbdrrrvvI6cPPOG7uOgGUFXNYTiSbnRq8ZMyuGa4+qmXJXVLEEz78hKuqupvkpwJQNk1Ucz1TenrRP90gmBg== dependencies: "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "2.19.2" - "@typescript-eslint/typescript-estree" "2.19.2" + "@typescript-eslint/experimental-utils" "2.21.0" + "@typescript-eslint/typescript-estree" "2.21.0" eslint-visitor-keys "^1.1.0" "@typescript-eslint/typescript-estree@2.19.2": @@ -200,6 +209,19 @@ semver "^6.3.0" tsutils "^3.17.1" +"@typescript-eslint/typescript-estree@2.21.0": + version "2.21.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.21.0.tgz#7e4be29f2e338195a2e8c818949ed0ff727cc943" + integrity sha512-NC/nogZNb9IK2MEFQqyDBAciOT8Lp8O3KgAfvHx2Skx6WBo+KmDqlU3R9KxHONaijfTIKtojRe3SZQyMjr3wBw== + dependencies: + debug "^4.1.1" + eslint-visitor-keys "^1.1.0" + glob "^7.1.6" + is-glob "^4.0.1" + lodash "^4.17.15" + semver "^6.3.0" + tsutils "^3.17.1" + abab@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.3.tgz#623e2075e02eb2d3f2475e49f99c91846467907a" From df84380aafa865ee3d95ffbfe2c27c470858f351 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2020 11:26:41 +0000 Subject: [PATCH 79/80] chore(deps-dev): bump mocha from 7.0.1 to 7.1.0 Bumps [mocha](https://github.com/mochajs/mocha) from 7.0.1 to 7.1.0. - [Release notes](https://github.com/mochajs/mocha/releases) - [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md) - [Commits](https://github.com/mochajs/mocha/compare/v7.0.1...v7.1.0) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/yarn.lock b/yarn.lock index 6c3c8bc..0cee274 100644 --- a/yarn.lock +++ b/yarn.lock @@ -433,7 +433,7 @@ caseless@~0.12.0: resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= -chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.4.1, chalk@^2.4.2: +chalk@^2.0.0, chalk@^2.1.0, chalk@^2.4.1, chalk@^2.4.2: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== @@ -1557,12 +1557,12 @@ lodash@^4.17.14, lodash@^4.17.15, lodash@~4.17.15: resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== -log-symbols@2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" - integrity sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg== +log-symbols@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-3.0.0.tgz#f3a08516a5dea893336a7dee14d18a1cfdab77c4" + integrity sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ== dependencies: - chalk "^2.0.1" + chalk "^2.4.2" magic-string@^0.25.2: version "0.25.3" @@ -1654,9 +1654,9 @@ mkdirp@0.5.1, mkdirp@^0.5.1: minimist "0.0.8" mocha@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-7.0.1.tgz#276186d35a4852f6249808c6dd4a1376cbf6c6ce" - integrity sha512-9eWmWTdHLXh72rGrdZjNbG3aa1/3NRPpul1z0D979QpEnFdCG0Q5tv834N+94QEN2cysfV72YocQ3fn87s70fg== + version "7.1.0" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-7.1.0.tgz#c784f579ad0904d29229ad6cb1e2514e4db7d249" + integrity sha512-MymHK8UkU0K15Q/zX7uflZgVoRWiTjy0fXE/QjKts6mowUvGxOdPhZ2qj3b0iZdUrNZlW9LAIMFHB4IW+2b3EQ== dependencies: ansi-colors "3.2.3" browser-stdout "1.3.1" @@ -1669,7 +1669,7 @@ mocha@^7.0.1: growl "1.10.5" he "1.2.0" js-yaml "3.13.1" - log-symbols "2.2.0" + log-symbols "3.0.0" minimatch "3.0.4" mkdirp "0.5.1" ms "2.1.1" From 926d45ff4664b2e20e04705a509819f7bbebe801 Mon Sep 17 00:00:00 2001 From: Jack Works Date: Tue, 3 Mar 2020 14:56:12 +0800 Subject: [PATCH 80/80] chore: bump version to 0.7.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1ba3aca..fe93d1f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@holoflows/kit", - "version": "0.6.1", + "version": "0.7.0", "module": "./es/index.js", "main": "./umd/index.js", "typings": "./es/",