From d192ca82e719d1b11b5cb330379891e1553ad3ed Mon Sep 17 00:00:00 2001 From: Philipp Daun Date: Fri, 30 Jun 2023 11:27:42 +0200 Subject: [PATCH 01/15] Update readme --- README.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ readme.md | 48 ------------------------------------------------ 2 files changed, 48 insertions(+), 48 deletions(-) create mode 100755 README.md delete mode 100755 readme.md diff --git a/README.md b/README.md new file mode 100755 index 0000000..1460928 --- /dev/null +++ b/README.md @@ -0,0 +1,48 @@ +# Swup Debug Plugin + +A [swup](https://swup.js.org) plugin for debugging and helping in development. + +- Output all triggered hooks to the console as they happen +- Rewrites swup's `log` method so that any output provided by plugins is visible +- Detect common mistakes and suggest solutions in the console + +## Installation + +Install the plugin from npm and import it into your bundle. + +```bash +npm install @swup/debug-plugin +``` + +```js +import SwupDebugPlugin from '@swup/debug-plugin'; +``` + +Or include the minified production file from a CDN: + +```html + +``` + +## Usage + +To run this plugin, include an instance in the swup options. + +```javascript +const swup = new Swup({ + plugins: [new SwupDebugPlugin()] +}); +``` + +## Options + +### globalInstance + +If `true`, the plugin will store the swup instance on the global window object, making swup +available at `window.swup`. Defaults to `false`. + +```javascript +{ + globalInstance: true +} +``` diff --git a/readme.md b/readme.md deleted file mode 100755 index 16c189f..0000000 --- a/readme.md +++ /dev/null @@ -1,48 +0,0 @@ -# Swup Debug plugin - -Debug plugin adds some useful functionality to swup for development purposes. -Mainly, it outputs all the events in the console as they happen, which can be useful for debugging. - -Debug Plugin rewrites swup's `log` method, so any output provided by plugins is also visible. - -The plugin also tries to detect some common mistakes, and outputs suggestions in the console. - -## Installation - -Install the plugin from npm and import it into your bundle. - -```bash -npm install @swup/debug-plugin -``` - -```js -import SwupDebugPlugin from '@swup/debug-plugin'; -``` - -Or include the minified production file from a CDN: - -```html - -``` - -## Usage - -To run this plugin, include an instance in the swup options. - -```javascript -const swup = new Swup({ - plugins: [new SwupDebugPlugin()] -}); -``` - -## Options - -### globalInstance - -If `true`, the plugin will store the swup instance on the global window object, making swup available at `window.swup`. Defaults to `false`. - -```javascript -new SwupDebugPlugin({ - globalInstance: true -}) -``` From 7941ad3d022b73304fb7169054d7ddeb030c59c7 Mon Sep 17 00:00:00 2001 From: Philipp Daun Date: Fri, 30 Jun 2023 11:28:03 +0200 Subject: [PATCH 02/15] Bump version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index b783178..0ba2739 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@swup/debug-plugin", - "version": "2.0.0", + "version": "4.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@swup/debug-plugin", - "version": "2.0.0", + "version": "4.0.0", "license": "MIT", "dependencies": { "@swup/plugin": "^2.0.0" diff --git a/package.json b/package.json index dc63eb6..23bf1c4 100755 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "@swup/debug-plugin", "amdName": "SwupDebugPlugin", - "version": "3.0.0", "description": "Swup Debug plugin.", + "version": "4.0.0", "type": "module", "source": "src/index.js", "main": "./dist/index.cjs", From 6094755cb1e67358aea2d280577e4c3697c6b2de Mon Sep 17 00:00:00 2001 From: Philipp Daun Date: Fri, 30 Jun 2023 11:28:10 +0200 Subject: [PATCH 03/15] Update package description --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 23bf1c4..319ee9d 100755 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "@swup/debug-plugin", "amdName": "SwupDebugPlugin", - "description": "Swup Debug plugin.", "version": "4.0.0", + "description": "A swup plugin for debugging and helping in development", "type": "module", "source": "src/index.js", "main": "./dist/index.cjs", From fd79801d1a774cde73211f7dfaafc13a770380a3 Mon Sep 17 00:00:00 2001 From: Philipp Daun Date: Fri, 30 Jun 2023 11:28:21 +0200 Subject: [PATCH 04/15] Update plugin name --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index dabaa04..9acd7b3 100755 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,7 @@ import Plugin from '@swup/plugin'; -export default class DebugPlugin extends Plugin { - name = 'DebugPlugin'; +export default class SwupDebugPlugin extends Plugin { + name = 'SwupDebugPlugin'; defaultOptions = { globalInstance: false From bc8dfb501db8ae609d4265456d2d9905be05e565 Mon Sep 17 00:00:00 2001 From: Philipp Daun Date: Fri, 30 Jun 2023 11:28:30 +0200 Subject: [PATCH 05/15] Refactor --- src/index.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/index.js b/src/index.js index 9acd7b3..6b82d23 100755 --- a/src/index.js +++ b/src/index.js @@ -3,22 +3,14 @@ import Plugin from '@swup/plugin'; export default class SwupDebugPlugin extends Plugin { name = 'SwupDebugPlugin'; - defaultOptions = { + defaults = { globalInstance: false }; constructor(options = {}) { super(); - this.options = { - ...this.defaultOptions, - ...options - }; - - if (!document.getElementsByTagName('title').length) { - const error = "This page doesn't have title tag. Title tag is required in every page."; - console.warn(`DEBUG PLUGIN: ${error}`); - } + this.options = { ...this.defaults, ...options }; } mount() { @@ -32,6 +24,12 @@ export default class SwupDebugPlugin extends Plugin { window.swup = swup; } + // check if title tag is present + if (!document.getElementsByTagName('title').length) { + const error = "This page doesn't have a title tag. It is required on every page."; + console.warn(`DEBUG PLUGIN: ${error}`); + } + // make events appear in console swup._triggerEvent = swup.triggerEvent; swup.triggerEvent = this.triggerEvent; From eb15f75e726c8fad5eee282341e804f743fe859a Mon Sep 17 00:00:00 2001 From: Philipp Daun Date: Fri, 30 Jun 2023 11:29:27 +0200 Subject: [PATCH 06/15] Add changelog --- CHANGELOG.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d9aab42 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,24 @@ +# Changelog + +## [Unreleased] + +- Update for swup 4 compatibility + +## [3.0.0] - 2023-03-10 + +- Switch to microbundle +- Export native ESM module + +## [2.0.0] - 2022-08-20 + +- Make global instance on window optional + +## [1.0.0] - 2019-05-02 + +- Initial release + +[Unreleased]: https://github.com/swup/debug-plugin/compare/3.0.0...HEAD + +[3.0.0]: https://github.com/swup/debug-plugin/releases/tag/3.0.0 +[2.0.0]: https://github.com/swup/debug-plugin/releases/tag/2.0.0 +[1.0.0]: https://github.com/swup/debug-plugin/releases/tag/1.0.0 From 0ba169a64e390163369d2b8187b7f332634484bb Mon Sep 17 00:00:00 2001 From: Philipp Daun Date: Fri, 30 Jun 2023 11:31:12 +0200 Subject: [PATCH 07/15] Remove superfluous link check --- src/index.js | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/index.js b/src/index.js index 6b82d23..85ab6ee 100755 --- a/src/index.js +++ b/src/index.js @@ -33,31 +33,6 @@ export default class SwupDebugPlugin extends Plugin { // make events appear in console swup._triggerEvent = swup.triggerEvent; swup.triggerEvent = this.triggerEvent; - - // detect relative links not starting with / or # - const potentiallyWrongLinksSelector = - 'a[href]:not([href^="' + - window.location.origin + - '"]):not([href^="/"]):not([href^="http"]):not([href^="/"]):not([href^="?"]):not([href^="#"])'; - - swup.on('pageView', () => { - if (document.querySelectorAll(potentiallyWrongLinksSelector).length) { - const error = - 'It seems there are some links with a href attribute not starting with "#", "/" or current domain, which is potentially a problem.'; - console.warn( - `DEBUG PLUGIN: ${error}`, - document.querySelectorAll(potentiallyWrongLinksSelector) - ); - } - if (document.querySelectorAll(potentiallyWrongLinksSelector).length) { - const error = - 'It seems there are some links with a href attribute not starting with "#", "/" or current domain, which is potentially a problem.'; - console.warn( - `DEBUG PLUGIN: ${error}`, - document.querySelectorAll(potentiallyWrongLinksSelector) - ); - } - }); } unmount() { From bb48af9239432ba3008e8c22905435cb0f19edf8 Mon Sep 17 00:00:00 2001 From: Philipp Daun Date: Fri, 30 Jun 2023 11:58:04 +0200 Subject: [PATCH 08/15] Update for swup 4 --- src/index.js | 64 ++++++++++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 29 deletions(-) diff --git a/src/index.js b/src/index.js index 85ab6ee..9698412 100755 --- a/src/index.js +++ b/src/index.js @@ -9,7 +9,6 @@ export default class SwupDebugPlugin extends Plugin { constructor(options = {}) { super(); - this.options = { ...this.defaults, ...options }; } @@ -17,6 +16,7 @@ export default class SwupDebugPlugin extends Plugin { const swup = this.swup; // set non-empty log method of swup + this.originalSwupLog = swup.log; swup.log = this.log; // set swup instance as a global variable swup @@ -26,40 +26,46 @@ export default class SwupDebugPlugin extends Plugin { // check if title tag is present if (!document.getElementsByTagName('title').length) { - const error = "This page doesn't have a title tag. It is required on every page."; - console.warn(`DEBUG PLUGIN: ${error}`); + this.warn(`This page doesn't have a title tag. It is required on every page.`) } // make events appear in console - swup._triggerEvent = swup.triggerEvent; - swup.triggerEvent = this.triggerEvent; + this.originalSwupHookTrigger = swup.hooks.trigger.bind(swup.hooks); + this.originalSwupHookTriggerSync = swup.hooks.triggerSync.bind(swup.hooks); + swup.hooks.trigger = this.triggerHook; + swup.hooks.triggerSync = this.triggerHookSync; } unmount() { - this.swup.log = () => {}; - this.swup.triggerEvent = this.swup._triggerEvent; + this.swup.log = this.originalSwupLog; + this.swup.hooks.trigger = this.originalSwupHookTrigger; + this.swup.hooks.triggerSync = this.originalSwupHookTriggerSync; if (this.options.globalInstance) { window.swup = null; } } - triggerEvent = (eventName, originalEvent) => { - if (originalEvent) { - console.groupCollapsed( - '%cswup:' + '%c' + eventName, - 'color: #343434', - 'color: #009ACD' - ); - console.log(originalEvent); - console.groupEnd(); - } else { - console.log('%cswup:' + '%c' + eventName, 'color: #343434', 'color: #009ACD'); - } + logHook(hook, data) { + console.groupCollapsed( + '%cswup:' + '%c' + hook, + 'color: #343434', + 'color: #009ACD' + ); + console.log(data); + console.groupEnd(); + } + + triggerHook = (hook, data, ...args) => { + this.logHook(hook, data); + return this.originalSwupHookTrigger(hook, data, ...args); + }; - this.swup._triggerEvent(eventName, originalEvent); + triggerHookSync = (hook, data, ...args) => { + this.logHook(hook, data); + return this.originalSwupHookTriggerSync(hook, data, ...args); }; - log = (str, object) => { + log(str, object) { if (object) { console.groupCollapsed(str); for (let key in object) { @@ -69,13 +75,13 @@ export default class SwupDebugPlugin extends Plugin { } else { console.log(str + '%c', 'color: #009ACD'); } - }; + } - debugLog = (log, type) => { - if (type === 'error') { - console.error(`DEBUG PLUGIN: ${log}`); - } else { - console.warn(`DEBUG PLUGIN: ${log}`); - } - }; + warn(str) { + console.warn(`[swup debug plugin] ${str}`); + } + + error(str) { + console.error(`[swup debug plugin] ${str}`); + } } From 43a7707cb3f7ffa04722a88da03f50c835dd2e14 Mon Sep 17 00:00:00 2001 From: Philipp Daun Date: Fri, 30 Jun 2023 12:00:43 +0200 Subject: [PATCH 09/15] Bump swup dependency --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 319ee9d..6d1c3b1 100755 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "@swup/plugin": "^2.0.0" }, "peerDependencies": { - "swup": "^3.0.0" + "swup": "^4.0.0" }, "browserslist": [ "extends @swup/browserslist-config" From eb934135f2c50008cb493ec715417b192ccbea6b Mon Sep 17 00:00:00 2001 From: Philipp Daun Date: Fri, 30 Jun 2023 12:13:22 +0200 Subject: [PATCH 10/15] Update changelog --- CHANGELOG.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9aab42..3d7f2a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog -## [Unreleased] + + +## [4.0.0] - 2023-07 - Update for swup 4 compatibility @@ -17,8 +19,9 @@ - Initial release -[Unreleased]: https://github.com/swup/debug-plugin/compare/3.0.0...HEAD +[Unreleased]: https://github.com/swup/debug-plugin/compare/4.0.0...HEAD +[4.0.0]: https://github.com/swup/debug-plugin/releases/tag/4.0.0 [3.0.0]: https://github.com/swup/debug-plugin/releases/tag/3.0.0 [2.0.0]: https://github.com/swup/debug-plugin/releases/tag/2.0.0 [1.0.0]: https://github.com/swup/debug-plugin/releases/tag/1.0.0 From 8ab0065ff0a6fb1babf8e5346663069dbe71a940 Mon Sep 17 00:00:00 2001 From: Philipp Daun Date: Sat, 1 Jul 2023 13:06:48 +0200 Subject: [PATCH 11/15] Require swup 4 --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.js b/src/index.js index 9698412..c16fd6c 100755 --- a/src/index.js +++ b/src/index.js @@ -3,6 +3,8 @@ import Plugin from '@swup/plugin'; export default class SwupDebugPlugin extends Plugin { name = 'SwupDebugPlugin'; + requires = { swup: '>=4' }; + defaults = { globalInstance: false }; From 9113ca9b2e1cf358ec428624ca83194c5c55a415 Mon Sep 17 00:00:00 2001 From: Philipp Daun Date: Fri, 21 Jul 2023 01:03:49 +0200 Subject: [PATCH 12/15] Update for recent changes --- src/index.js | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/index.js b/src/index.js index c16fd6c..fd5605e 100755 --- a/src/index.js +++ b/src/index.js @@ -31,17 +31,19 @@ export default class SwupDebugPlugin extends Plugin { this.warn(`This page doesn't have a title tag. It is required on every page.`) } - // make events appear in console - this.originalSwupHookTrigger = swup.hooks.trigger.bind(swup.hooks); - this.originalSwupHookTriggerSync = swup.hooks.triggerSync.bind(swup.hooks); - swup.hooks.trigger = this.triggerHook; - swup.hooks.triggerSync = this.triggerHookSync; + // make hook calls appear in console + this.originalSwupHookCall = swup.hooks.call.bind(swup.hooks); + this.originalSwupHookCallSync = swup.hooks.callSync.bind(swup.hooks); + swup.hooks.call = this.callHook.bind(this); + swup.hooks.callSync = this.callHookSync.bind(this); } unmount() { + super.unmount(); + this.swup.log = this.originalSwupLog; - this.swup.hooks.trigger = this.originalSwupHookTrigger; - this.swup.hooks.triggerSync = this.originalSwupHookTriggerSync; + this.swup.hooks.call = this.originalSwupHookCall; + this.swup.hooks.callSync = this.originalSwupHookCallSync; if (this.options.globalInstance) { window.swup = null; } @@ -57,15 +59,15 @@ export default class SwupDebugPlugin extends Plugin { console.groupEnd(); } - triggerHook = (hook, data, ...args) => { + callHook(hook, data, ...args) { this.logHook(hook, data); - return this.originalSwupHookTrigger(hook, data, ...args); - }; + return this.originalSwupHookCall(hook, data, ...args); + } - triggerHookSync = (hook, data, ...args) => { + callHookSync(hook, data, ...args) { this.logHook(hook, data); - return this.originalSwupHookTriggerSync(hook, data, ...args); - }; + return this.originalSwupHookCallSync(hook, data, ...args); + } log(str, object) { if (object) { From 522834cd38b33dfa59cba7bf3cb89e35045419eb Mon Sep 17 00:00:00 2001 From: Philipp Daun Date: Fri, 21 Jul 2023 01:06:59 +0200 Subject: [PATCH 13/15] Version and prepublish --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6d1c3b1..96fcefa 100755 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "dev": "swup-plugin dev", "lint": "swup-plugin lint", "format": "swup-plugin format", - "prepublish": "npm run build" + "prepublishOnly": "npm run build" }, "author": { "name": "Georgy Marchuk", @@ -42,7 +42,7 @@ "url": "https://github.com/swup/debug-plugin.git" }, "dependencies": { - "@swup/plugin": "^2.0.0" + "@swup/plugin": "^3.0.0" }, "peerDependencies": { "swup": "^4.0.0" From 63764238a29e18d863c9338cb683e04efea55b85 Mon Sep 17 00:00:00 2001 From: Philipp Daun Date: Tue, 25 Jul 2023 22:22:39 +0200 Subject: [PATCH 14/15] Update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d7f2a7..8e6e369 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ -## [4.0.0] - 2023-07 +## [4.0.0] - 2023-07-26 - Update for swup 4 compatibility From 13d6dcfaeea717c1e3a4cf3ece94afb6890cca58 Mon Sep 17 00:00:00 2001 From: Philipp Daun Date: Wed, 26 Jul 2023 10:53:10 +0200 Subject: [PATCH 15/15] Pin versions --- package-lock.json | 45 +++++++++++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0ba2739..c7322e1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,10 +9,10 @@ "version": "4.0.0", "license": "MIT", "dependencies": { - "@swup/plugin": "^2.0.0" + "@swup/plugin": "^3.0.0" }, "peerDependencies": { - "swup": "^3.0.0" + "swup": "^4.0.0" } }, "node_modules/@ampproject/remapping": { @@ -1932,9 +1932,9 @@ "integrity": "sha512-/3nBqG7LqmK1uqaCSTA6s2NwQBDQXNyLAFBzlX6uaxqjIQcAZyq6K+sgcQ40oj02Vn/2mLSkeL9DOfP7BPOwVA==" }, "node_modules/@swup/plugin": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@swup/plugin/-/plugin-2.0.2.tgz", - "integrity": "sha512-pde/zKIgXpbI+qy8rhuy8De8KniZRuwAoxuOoGTvhErolrW2khlYKtVXgPACRmmPJvGI5ZTfBzBN5txKfIGefQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@swup/plugin/-/plugin-3.0.0.tgz", + "integrity": "sha512-dCFhmFmucMY4ae4qo01fGocU74YrLwffTTtxCUO21OyDgFdywjO4RLP0pgjsiXueBbpcXkexbj4q+O19dWQRoA==", "dependencies": { "@swup/browserslist-config": "^1.0.0", "@swup/prettier-config": "^1.0.0", @@ -1943,7 +1943,7 @@ "prettier": "^2.7.1", "shelljs": "^0.8.5", "shelljs-live": "^0.0.5", - "swup": "^3.0.0" + "swup": "^4.0.0" }, "bin": { "swup-plugin": "bin/swup-plugin.js" @@ -2575,11 +2575,14 @@ } }, "node_modules/delegate-it": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/delegate-it/-/delegate-it-3.0.1.tgz", - "integrity": "sha512-XU8H4pjDGBW74hFIbjdLPnvtU3HF3P9bbZvoFBSBLb5JgNaTkRb/2lvC1V+9kmZsxVR0kad4bU3rYhQ/4Ij+Gw==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/delegate-it/-/delegate-it-6.0.1.tgz", + "integrity": "sha512-ZS2hRm/SaoPzaeWcWyYjzVVF4/PgALZqma9FXsunFt4XQGVAtQ79Vx7v57vNQNaI75Rl12C+x6TkLqHS5PNKLg==", "dependencies": { - "typed-query-selector": "^2.6.1" + "typed-query-selector": "^2.10.0" + }, + "funding": { + "url": "https://github.com/sponsors/fregante" } }, "node_modules/dom-serializer": { @@ -4134,6 +4137,11 @@ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" }, + "node_modules/path-to-regexp": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.2.1.tgz", + "integrity": "sha512-JLyh7xT1kizaEvcaXOQwOc2/Yhw6KZOvPf1S8401UyLk86CU79LN3vl7ztXGm/pZ+YjoyAJ4rxmHwbkBXJX+yw==" + }, "node_modules/path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", @@ -5378,13 +5386,14 @@ } }, "node_modules/swup": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/swup/-/swup-3.0.5.tgz", - "integrity": "sha512-MD2oVgyvKbUgWeGKjOzDQUfYLtqlQktREcR27QnzqKBSAjApLrbMTWToYrkI2ZnCXG6ApPMjsrRLArSwiJUBmw==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/swup/-/swup-4.0.0.tgz", + "integrity": "sha512-GQX9WKFJBe4mZaryKkb8QZHsVP9u0GbMauD/B/msthNFB7rbUOqO1eSvaZB9d4TypHCjbviZ6kKac0v9vChOOA==", "hasInstallScript": true, "dependencies": { - "delegate-it": "^3.0.1", - "opencollective-postinstall": "^2.0.2" + "delegate-it": "^6.0.0", + "opencollective-postinstall": "^2.0.2", + "path-to-regexp": "^6.2.1" } }, "node_modules/terser": { @@ -5445,9 +5454,9 @@ } }, "node_modules/typed-query-selector": { - "version": "2.9.2", - "resolved": "https://registry.npmjs.org/typed-query-selector/-/typed-query-selector-2.9.2.tgz", - "integrity": "sha512-mOnelGQ0JBbYvboX6v/3vijUkIW9L557DHVRUFQTKG352EWvW/uDN6ORlPvTPRivefqb3QbbyZgLtPmxQaxmug==" + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/typed-query-selector/-/typed-query-selector-2.11.0.tgz", + "integrity": "sha512-qBs4sfmnLlPOyo2oSdvHbIFHe2CPgU54/1UGfSNceb7LARpIEVxUaeRX0Doje6oKpuySS2stqy90R3YrynR8Kg==" }, "node_modules/typescript": { "version": "4.9.5",