diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1a1e2ae..114d941 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,7 @@ jobs: - run: npm run lint test: strategy: - fail-fast: false + fail-fast: true matrix: os: [ubuntu-latest, windows-latest, macos-latest] node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x, 24.x] @@ -72,9 +72,9 @@ jobs: architecture: ${{ steps.calculate_architecture.outputs.result }} cache: "npm" - run: npm install --ignore-engines - if: matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x' || matrix.node-version == '16.x' + if: matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x' - run: npm ci - if: matrix.node-version != '10.x' && matrix.node-version != '12.x' && matrix.node-version != '14.x' && matrix.node-version != '16.x' + if: matrix.node-version != '10.x' && matrix.node-version != '12.x' && matrix.node-version != '14.x' - run: npm run test:coverage env: WATCHPACK_POLLING: ${{ matrix.polling }} diff --git a/lib/DirectoryWatcher.js b/lib/DirectoryWatcher.js index 75b2e33..1791ab2 100644 --- a/lib/DirectoryWatcher.js +++ b/lib/DirectoryWatcher.js @@ -5,12 +5,12 @@ "use strict"; const { EventEmitter } = require("events"); -const fs = require("graceful-fs"); const path = require("path"); +const fs = require("graceful-fs"); const watchEventSource = require("./watchEventSource"); -/** @typedef {import("./index").NormalizedWatchOptions} NormalizedWatchOptions */ +/** @typedef {import("./index").IgnoredFunction} IgnoredFunction */ /** @typedef {import("./index").EventType} EventType */ /** @typedef {import("./index").TimeInfoEntries} TimeInfoEntries */ /** @typedef {import("./index").Entry} Entry */ @@ -135,6 +135,13 @@ class Watcher extends EventEmitter { * @property {() => void} closed closed event */ +/** + * @typedef {object} DirectoryWatcherOptions + * @property {boolean=} followSymlinks true when need to resolve symlinks and watch symlink and real file, otherwise false + * @property {IgnoredFunction=} ignored ignore some files from watching (glob pattern or regexp) + * @property {number | boolean=} poll true when need to enable polling mode for watching, otherwise false + */ + /** * @extends {EventEmitter<{ [K in keyof WatchpackEvents]: Parameters }>} */ @@ -142,9 +149,9 @@ class DirectoryWatcher extends EventEmitter { /** * @param {WatcherManager} watcherManager a watcher manager * @param {string} directoryPath directory path - * @param {NormalizedWatchOptions} options options + * @param {DirectoryWatcherOptions=} options options */ - constructor(watcherManager, directoryPath, options) { + constructor(watcherManager, directoryPath, options = {}) { super(); if (FORCE_POLLING) { options.poll = FORCE_POLLING; @@ -954,5 +961,5 @@ class DirectoryWatcher extends EventEmitter { } module.exports = DirectoryWatcher; -module.exports.Watcher = Watcher; module.exports.EXISTANCE_ONLY_TIME_ENTRY = EXISTANCE_ONLY_TIME_ENTRY; +module.exports.Watcher = Watcher; diff --git a/lib/getWatcherManager.js b/lib/getWatcherManager.js index dc0e4af..ca88c80 100644 --- a/lib/getWatcherManager.js +++ b/lib/getWatcherManager.js @@ -7,8 +7,8 @@ const path = require("path"); const DirectoryWatcher = require("./DirectoryWatcher"); -/** @typedef {import("./index").NormalizedWatchOptions} NormalizedWatchOptions */ /** @typedef {import("./index").EventMap} EventMap */ +/** @typedef {import("./DirectoryWatcher").DirectoryWatcherOptions} DirectoryWatcherOptions */ /** @typedef {import("./DirectoryWatcher").DirectoryWatcherEvents} DirectoryWatcherEvents */ /** @typedef {import("./DirectoryWatcher").FileWatcherEvents} FileWatcherEvents */ /** @@ -18,9 +18,9 @@ const DirectoryWatcher = require("./DirectoryWatcher"); class WatcherManager { /** - * @param {NormalizedWatchOptions} options options + * @param {DirectoryWatcherOptions=} options options */ - constructor(options) { + constructor(options = {}) { this.options = options; /** @type {Map} */ this.directoryWatchers = new Map(); @@ -67,7 +67,7 @@ class WatcherManager { const watcherManagers = new WeakMap(); /** - * @param {NormalizedWatchOptions} options options + * @param {DirectoryWatcherOptions} options options * @returns {WatcherManager} the watcher manager */ module.exports = (options) => { diff --git a/lib/index.js b/lib/index.js index 181df63..ffba497 100644 --- a/lib/index.js +++ b/lib/index.js @@ -4,10 +4,10 @@ */ "use strict"; -const getWatcherManager = require("./getWatcherManager"); -const LinkResolver = require("./LinkResolver"); const { EventEmitter } = require("events"); const globToRegExp = require("glob-to-regexp"); +const LinkResolver = require("./LinkResolver"); +const getWatcherManager = require("./getWatcherManager"); const watchEventSource = require("./watchEventSource"); /** @typedef {import("./getWatcherManager").WatcherManager} WatcherManager */ @@ -15,7 +15,7 @@ const watchEventSource = require("./watchEventSource"); /** @typedef {import("./DirectoryWatcher").DirectoryWatcherEvents} DirectoryWatcherEvents */ /** @typedef {import("./DirectoryWatcher").FileWatcherEvents} FileWatcherEvents */ -// eslint-disable-next-line jsdoc/no-restricted-syntax +// eslint-disable-next-line jsdoc/reject-any-type /** @typedef {Record any>} EventMap */ /** @@ -45,6 +45,7 @@ const watchEventSource = require("./watchEventSource"); /** @typedef {`scan (${string})` | "change" | "rename" | `watch ${string}` | `directory-removed ${string}`} EventType */ /** @typedef {{ safeTime: number, timestamp: number, accuracy: number }} Entry */ /** @typedef {{ safeTime: number }} OnlySafeTimeEntry */ +// eslint-disable-next-line jsdoc/ts-no-empty-object-type /** @typedef {{}} ExistanceOnlyTimeEntry */ /** @typedef {Map} TimeInfoEntries */ /** @typedef {Set} Changes */ @@ -239,9 +240,9 @@ class WatchpackDirectoryWatcher { */ class Watchpack extends EventEmitter { /** - * @param {WatchOptions} options options + * @param {WatchOptions=} options options */ - constructor(options) { + constructor(options = {}) { super(); if (!options) options = {}; /** @type {WatchOptions} */ diff --git a/lib/watchEventSource.js b/lib/watchEventSource.js index fdee480..e9b3b3f 100644 --- a/lib/watchEventSource.js +++ b/lib/watchEventSource.js @@ -4,9 +4,9 @@ */ "use strict"; +const { EventEmitter } = require("events"); const fs = require("fs"); const path = require("path"); -const { EventEmitter } = require("events"); const reducePlan = require("./reducePlan"); /** @typedef {import("fs").FSWatcher} FSWatcher */ @@ -398,6 +398,25 @@ const execute = () => { } }; +module.exports.Watcher = Watcher; + +/** + * @param {() => void} fn a function + */ +module.exports.batch = (fn) => { + isBatch = true; + try { + fn(); + } finally { + isBatch = false; + execute(); + } +}; + +module.exports.createHandleChangeEvent = createHandleChangeEvent; + +module.exports.getNumberOfWatchers = () => watcherCount; + /** * @param {string} filePath a file path * @returns {Watcher} watcher @@ -427,20 +446,4 @@ module.exports.watch = (filePath) => { return watcher; }; -/** - * @param {() => void} fn a function - */ -module.exports.batch = (fn) => { - isBatch = true; - try { - fn(); - } finally { - isBatch = false; - execute(); - } -}; - -module.exports.getNumberOfWatchers = () => watcherCount; -module.exports.createHandleChangeEvent = createHandleChangeEvent; module.exports.watcherLimit = watcherLimit; -module.exports.Watcher = Watcher; diff --git a/package-lock.json b/package-lock.json index 806bd43..bada2bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,28 +14,25 @@ }, "devDependencies": { "@eslint/js": "^9.28.0", - "@eslint/markdown": "^6.5.0", - "@stylistic/eslint-plugin": "^4.4.1", + "@eslint/markdown": "^7.5.1", + "@stylistic/eslint-plugin": "^5.6.1", "@types/glob-to-regexp": "^0.4.4", "@types/graceful-fs": "^4.1.9", "@types/jest": "^27.5.1", "@types/node": "^24.10.4", - "coveralls": "^3.0.0", - "eslint": "^9.28.0", - "eslint-config-prettier": "^10.1.5", - "eslint-config-webpack": "^4.0.2", - "eslint-plugin-import": "^2.31.0", - "eslint-plugin-jest": "^28.12.0", - "eslint-plugin-jsdoc": "^50.7.1", - "eslint-plugin-n": "^17.19.0", - "eslint-plugin-prettier": "^5.4.1", - "eslint-plugin-unicorn": "^59.0.1", - "globals": "^16.2.0", - "mocha": "^5.0.1", - "nyc": "^15.1.0", - "prettier": "^3.5.3", + "eslint": "^9.39.2", + "eslint-config-prettier": "^10.1.8", + "eslint-config-webpack": "^4.7.3", + "eslint-plugin-import": "^2.32.0", + "eslint-plugin-jest": "^29.5.0", + "eslint-plugin-jsdoc": "^61.5.0", + "eslint-plugin-n": "^17.23.1", + "eslint-plugin-prettier": "^5.5.4", + "eslint-plugin-unicorn": "^62.0.0", + "globals": "^16.5.0", + "jest": "^27.5.1", + "prettier": "^3.7.4", "rimraf": "^2.6.2", - "should": "^8.3.1", "typescript": "^5.9.3", "write-file-atomic": "^3.0.1" }, @@ -195,6 +192,16 @@ "@babel/core": "^7.0.0" } }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", + "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/helper-string-parser": { "version": "7.27.1", "dev": true, @@ -204,7 +211,9 @@ } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.27.1", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", "dev": true, "license": "MIT", "engines": { @@ -245,6 +254,229 @@ "node": ">=6.0.0" } }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz", + "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.27.1.tgz", + "integrity": "sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, "node_modules/@babel/template": { "version": "7.27.2", "dev": true, @@ -284,34 +516,57 @@ } }, "node_modules/@babel/types": { - "version": "7.27.6", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz", + "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==", "dev": true, "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1" + "@babel/helper-validator-identifier": "^7.28.5" }, "engines": { "node": ">=6.9.0" } }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true, + "license": "MIT" + }, "node_modules/@es-joy/jsdoccomment": { - "version": "0.50.2", + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.76.0.tgz", + "integrity": "sha512-g+RihtzFgGTx2WYCuTHbdOXJeAlGnROws0TeALx9ow/ZmOROOZkVg5wp/B44n0WJgI4SQFP1eWM2iRPlU2Y14w==", "dev": true, "license": "MIT", "dependencies": { - "@types/estree": "^1.0.6", - "@typescript-eslint/types": "^8.11.0", + "@types/estree": "^1.0.8", + "@typescript-eslint/types": "^8.46.0", "comment-parser": "1.4.1", "esquery": "^1.6.0", - "jsdoc-type-pratt-parser": "~4.1.0" + "jsdoc-type-pratt-parser": "~6.10.0" }, "engines": { - "node": ">=18" + "node": ">=20.11.0" + } + }, + "node_modules/@es-joy/resolve.exports": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@es-joy/resolve.exports/-/resolve.exports-1.2.0.tgz", + "integrity": "sha512-Q9hjxWI5xBM+qW2enxfe8wDKdFWMfd0Z29k5ZJnuBqD/CasY5Zryj09aCA6owbGATWz+39p5uIdaHXpopOcG8g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" } }, "node_modules/@eslint-community/eslint-utils": { - "version": "4.7.0", + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz", + "integrity": "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==", "dev": true, "license": "MIT", "dependencies": { @@ -347,11 +602,13 @@ } }, "node_modules/@eslint/config-array": { - "version": "0.20.0", + "version": "0.21.1", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.1.tgz", + "integrity": "sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@eslint/object-schema": "^2.1.6", + "@eslint/object-schema": "^2.1.7", "debug": "^4.3.1", "minimatch": "^3.1.2" }, @@ -360,15 +617,22 @@ } }, "node_modules/@eslint/config-helpers": { - "version": "0.2.2", + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", + "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", "dev": true, "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0" + }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@eslint/core": { - "version": "0.14.0", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", + "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -430,7 +694,9 @@ } }, "node_modules/@eslint/js": { - "version": "9.28.0", + "version": "9.39.2", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.2.tgz", + "integrity": "sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==", "dev": true, "license": "MIT", "engines": { @@ -441,24 +707,33 @@ } }, "node_modules/@eslint/markdown": { - "version": "6.5.0", + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/@eslint/markdown/-/markdown-7.5.1.tgz", + "integrity": "sha512-R8uZemG9dKTbru/DQRPblbJyXpObwKzo8rv1KYGGuPUPtjM4LXBYM9q5CIZAComzZupws3tWbDwam5AFpPLyJQ==", "dev": true, "license": "MIT", + "workspaces": [ + "examples/*" + ], "dependencies": { - "@eslint/core": "^0.14.0", - "@eslint/plugin-kit": "^0.3.1", + "@eslint/core": "^0.17.0", + "@eslint/plugin-kit": "^0.4.1", + "github-slugger": "^2.0.0", "mdast-util-from-markdown": "^2.0.2", "mdast-util-frontmatter": "^2.0.1", - "mdast-util-gfm": "^3.0.0", + "mdast-util-gfm": "^3.1.0", "micromark-extension-frontmatter": "^2.0.0", - "micromark-extension-gfm": "^3.0.0" + "micromark-extension-gfm": "^3.0.0", + "micromark-util-normalize-identifier": "^2.0.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@eslint/object-schema": { - "version": "2.1.6", + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", + "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", "dev": true, "license": "Apache-2.0", "engines": { @@ -466,11 +741,13 @@ } }, "node_modules/@eslint/plugin-kit": { - "version": "0.3.1", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", + "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@eslint/core": "^0.14.0", + "@eslint/core": "^0.17.0", "levn": "^0.4.1" }, "engines": { @@ -556,96 +833,484 @@ "node": ">=8" } }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.8", + "node_modules/@jest/console": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-27.5.1.tgz", + "integrity": "sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==", "dev": true, "license": "MIT", "dependencies": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.24" + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0" }, "engines": { - "node": ">=6.0.0" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", + "node_modules/@jest/core": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-27.5.1.tgz", + "integrity": "sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==", "dev": true, "license": "MIT", + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/reporters": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^27.5.1", + "jest-config": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-resolve-dependencies": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "jest-watcher": "^27.5.1", + "micromatch": "^4.0.4", + "rimraf": "^3.0.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, "engines": { - "node": ">=6.0.0" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } } }, - "node_modules/@jridgewell/set-array": { - "version": "1.2.1", + "node_modules/@jest/core/node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.0", - "dev": true, - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.25", + "node_modules/@jest/environment": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", + "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", "dev": true, "license": "MIT", "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/@pkgr/core": { - "version": "0.2.7", + "node_modules/@jest/fake-timers": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", + "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", "dev": true, "license": "MIT", - "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + "dependencies": { + "@jest/types": "^27.5.1", + "@sinonjs/fake-timers": "^8.0.1", + "@types/node": "*", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" }, - "funding": { - "url": "https://opencollective.com/pkgr" + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/@rtsao/scc": { - "version": "1.1.0", - "dev": true, - "license": "MIT" - }, - "node_modules/@stylistic/eslint-plugin": { - "version": "4.4.1", + "node_modules/@jest/globals": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-27.5.1.tgz", + "integrity": "sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/utils": "^8.32.1", - "eslint-visitor-keys": "^4.2.0", - "espree": "^10.3.0", - "estraverse": "^5.3.0", - "picomatch": "^4.0.2" + "@jest/environment": "^27.5.1", + "@jest/types": "^27.5.1", + "expect": "^27.5.1" }, "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "peerDependencies": { - "eslint": ">=9.0.0" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/@types/debug": { - "version": "4.1.12", + "node_modules/@jest/reporters": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-27.5.1.tgz", + "integrity": "sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==", "dev": true, "license": "MIT", "dependencies": { - "@types/ms": "*" + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.2", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-haste-map": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "slash": "^3.0.0", + "source-map": "^0.6.0", + "string-length": "^4.0.1", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^8.1.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } } }, - "node_modules/@types/estree": { - "version": "1.0.8", + "node_modules/@jest/reporters/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", "dev": true, - "license": "MIT" - }, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/reporters/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@jest/source-map": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-27.5.1.tgz", + "integrity": "sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9", + "source-map": "^0.6.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-27.5.1.tgz", + "integrity": "sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz", + "integrity": "sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/test-result": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-runtime": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.5.1.tgz", + "integrity": "sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/types": "^27.5.1", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-util": "^27.5.1", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/types": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", + "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.8", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@pkgr/core": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.2.9.tgz", + "integrity": "sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/pkgr" + } + }, + "node_modules/@rtsao/scc": { + "version": "1.1.0", + "dev": true, + "license": "MIT" + }, + "node_modules/@sindresorhus/base62": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/base62/-/base62-1.0.0.tgz", + "integrity": "sha512-TeheYy0ILzBEI/CO55CP6zJCSdSWeRtGnHy8U8dWSUH4I68iqTsy7HkMktR4xakThc9jotkPQUXT4ITdbV7cHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@sinonjs/commons": { + "version": "1.8.6", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", + "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", + "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@sinonjs/commons": "^1.7.0" + } + }, + "node_modules/@stylistic/eslint-plugin": { + "version": "5.6.1", + "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin/-/eslint-plugin-5.6.1.tgz", + "integrity": "sha512-JCs+MqoXfXrRPGbGmho/zGS/jMcn3ieKl/A8YImqib76C8kjgZwq5uUFzc30lJkMvcchuRn6/v8IApLxli3Jyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.9.0", + "@typescript-eslint/types": "^8.47.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "estraverse": "^5.3.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "peerDependencies": { + "eslint": ">=9.0.0" + } + }, + "node_modules/@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/debug": { + "version": "4.1.12", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/ms": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "dev": true, + "license": "MIT" + }, "node_modules/@types/glob-to-regexp": { "version": "0.4.4", "resolved": "https://registry.npmjs.org/@types/glob-to-regexp/-/glob-to-regexp-0.4.4.tgz", @@ -663,6 +1328,33 @@ "@types/node": "*" } }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, "node_modules/@types/jest": { "version": "27.5.2", "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.5.2.tgz", @@ -676,6 +1368,8 @@ }, "node_modules/@types/json-schema": { "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", "dev": true, "license": "MIT" }, @@ -707,11 +1401,42 @@ "undici-types": "~7.16.0" } }, + "node_modules/@types/prettier": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", + "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/unist": { "version": "3.0.3", "dev": true, "license": "MIT" }, + "node_modules/@types/yargs": { + "version": "16.0.11", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.11.tgz", + "integrity": "sha512-sbtvk8wDN+JvEdabmZExoW/HNr1cB7D/j4LT08rMiuikfA7m/JNJg7ATQcgzs34zHnoScDkY0ZRSl29Fkmk36g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true, + "license": "MIT" + }, "node_modules/@typescript-eslint/project-service": { "version": "8.50.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.50.0.tgz", @@ -879,6 +1604,14 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/abab": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", + "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", + "deprecated": "Use your platform's native atob() and btoa() methods instead", + "dev": true, + "license": "BSD-3-Clause" + }, "node_modules/acorn": { "version": "8.15.0", "dev": true, @@ -890,40 +1623,67 @@ "node": ">=0.4.0" } }, - "node_modules/acorn-jsx": { - "version": "5.3.2", + "node_modules/acorn-globals": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", + "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", "dev": true, "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + "dependencies": { + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1" } }, - "node_modules/aggregate-error": { - "version": "3.1.0", + "node_modules/acorn-globals/node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", "dev": true, "license": "MIT", - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" + "bin": { + "acorn": "bin/acorn" }, "engines": { - "node": ">=8" + "node": ">=0.4.0" } }, - "node_modules/aggregate-error/node_modules/indent-string": { - "version": "4.0.0", + "node_modules/acorn-jsx": { + "version": "5.3.2", "dev": true, "license": "MIT", - "engines": { - "node": ">=8" + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/ajv": { - "version": "6.12.6", + "node_modules/acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", "dev": true, "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "dev": true, + "license": "MIT", + "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" @@ -933,6 +1693,35 @@ "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-escapes/node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/ansi-regex": { "version": "5.0.1", "dev": true, @@ -955,21 +1744,32 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/append-transform": { - "version": "2.0.0", + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, - "license": "MIT", + "license": "ISC", "dependencies": { - "default-require-extensions": "^3.0.0" + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" }, "engines": { - "node": ">=8" + "node": ">= 8" } }, - "node_modules/archy": { - "version": "1.0.0", + "node_modules/anymatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } }, "node_modules/are-docs-informative": { "version": "0.0.2", @@ -1097,22 +1897,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/asn1": { - "version": "0.2.6", - "dev": true, - "license": "MIT", - "dependencies": { - "safer-buffer": "~2.1.0" - } - }, - "node_modules/assert-plus": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8" - } - }, "node_modules/async-function": { "version": "1.0.0", "dev": true, @@ -1140,34 +1924,152 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/aws-sign2": { - "version": "0.7.0", + "node_modules/babel-jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz", + "integrity": "sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", + "dependencies": { + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, "engines": { - "node": "*" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" } }, - "node_modules/aws4": { - "version": "1.13.2", + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", "dev": true, - "license": "MIT" + "license": "BSD-3-Clause", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz", + "integrity": "sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.0.0", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz", + "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" + }, + "peerDependencies": { + "@babel/core": "^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/babel-preset-jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz", + "integrity": "sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==", + "dev": true, + "license": "MIT", + "dependencies": { + "babel-plugin-jest-hoist": "^27.5.1", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } }, "node_modules/balanced-match": { "version": "1.0.2", "dev": true, "license": "MIT" }, - "node_modules/bcrypt-pbkdf": { - "version": "1.0.2", + "node_modules/baseline-browser-mapping": { + "version": "2.9.11", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.11.tgz", + "integrity": "sha512-Sg0xJUNDU1sJNGdfGWhVHX0kkZ+HWcvmVymJbj6NSgZZmW/8S9Y2HQ5euytnIgakgxN6papOAWiwDo1ctFDcoQ==", "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "tweetnacl": "^0.14.3" + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.js" } }, "node_modules/brace-expansion": { - "version": "1.1.11", + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", "dev": true, "license": "MIT", "dependencies": { @@ -1175,13 +2077,30 @@ "concat-map": "0.0.1" } }, - "node_modules/browser-stdout": { - "version": "1.3.1", + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, - "license": "ISC" + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browser-process-hrtime": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", + "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", + "dev": true, + "license": "BSD-2-Clause" }, "node_modules/browserslist": { - "version": "4.25.0", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", "dev": true, "funding": [ { @@ -1199,10 +2118,11 @@ ], "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001718", - "electron-to-chromium": "^1.5.160", - "node-releases": "^2.0.19", - "update-browserslist-db": "^1.1.3" + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", + "node-releases": "^2.0.27", + "update-browserslist-db": "^1.2.0" }, "bin": { "browserslist": "cli.js" @@ -1211,8 +2131,27 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true, + "license": "MIT" + }, "node_modules/builtin-modules": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-5.0.0.tgz", + "integrity": "sha512-bkXY9WsVpY7CvMhKSR6pZilZu9Ln5WDrKVBUXf2S443etkmEO4V58heTecXcUIsNsi4Rx8JUO4NfX1IcQl4deg==", "dev": true, "license": "MIT", "engines": { @@ -1222,20 +2161,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/caching-transform": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "hasha": "^5.0.0", - "make-dir": "^3.0.0", - "package-hash": "^4.0.0", - "write-file-atomic": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/call-bind": { "version": "1.0.8", "dev": true, @@ -1297,7 +2222,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001721", + "version": "1.0.30001761", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001761.tgz", + "integrity": "sha512-JF9ptu1vP2coz98+5051jZ4PwQgd2ni8A+gYSN7EA7dPKIMf0pDlSUxhdmVOaV3/fYK5uWBkgSXJaRLr4+3A6g==", "dev": true, "funding": [ { @@ -1315,11 +2242,6 @@ ], "license": "CC-BY-4.0" }, - "node_modules/caseless": { - "version": "0.12.0", - "dev": true, - "license": "Apache-2.0" - }, "node_modules/ccount": { "version": "2.0.1", "dev": true, @@ -1344,6 +2266,23 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/change-case": { + "version": "5.4.4", + "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.4.tgz", + "integrity": "sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==", + "dev": true, + "license": "MIT" + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, "node_modules/character-entities": { "version": "2.0.2", "dev": true, @@ -1354,7 +2293,9 @@ } }, "node_modules/ci-info": { - "version": "4.2.0", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.1.tgz", + "integrity": "sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==", "dev": true, "funding": [ { @@ -1367,8 +2308,17 @@ "node": ">=8" } }, + "node_modules/cjs-module-lexer": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", + "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", + "dev": true, + "license": "MIT" + }, "node_modules/clean-regexp": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/clean-regexp/-/clean-regexp-1.0.0.tgz", + "integrity": "sha512-GfisEZEJvzKrmGWkvfhgzcz/BllN1USeqD2V6tg14OAOgaCD2Z/PUEuxnAZ/nPvmaHRG7a8y77p1T/IRQ4D1Hw==", "dev": true, "license": "MIT", "dependencies": { @@ -1378,23 +2328,23 @@ "node": ">=4" } }, - "node_modules/clean-stack": { - "version": "2.2.0", + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", "dev": true, "license": "MIT", "engines": { - "node": ">=6" + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" } }, - "node_modules/cliui": { - "version": "6.0.0", + "node_modules/collect-v8-coverage": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz", + "integrity": "sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==", "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } + "license": "MIT" }, "node_modules/color-convert": { "version": "2.0.1", @@ -1423,24 +2373,16 @@ "node": ">= 0.8" } }, - "node_modules/commander": { - "version": "2.15.1", - "dev": true, - "license": "MIT" - }, "node_modules/comment-parser": { "version": "1.4.1", + "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.4.1.tgz", + "integrity": "sha512-buhp5kePrmda3vhc5B9t7pUQXAb2Tnd0qgpkIhPhkHXxJpiPJ11H0ZEU0oBpJ2QztSbzG/ZxMj/CHsYJqRHmyg==", "dev": true, "license": "MIT", "engines": { "node": ">= 12.0.0" } }, - "node_modules/commondir": { - "version": "1.0.1", - "dev": true, - "license": "MIT" - }, "node_modules/concat-map": { "version": "0.0.1", "dev": true, @@ -1452,40 +2394,19 @@ "license": "MIT" }, "node_modules/core-js-compat": { - "version": "3.43.0", + "version": "3.47.0", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.47.0.tgz", + "integrity": "sha512-IGfuznZ/n7Kp9+nypamBhvwdwLsW6KC8IOaURw2doAK5e98AG3acVLdh0woOnEqCfUtS+Vu882JE4k/DAm3ItQ==", "dev": true, "license": "MIT", "dependencies": { - "browserslist": "^4.25.0" + "browserslist": "^4.28.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/core-js" } }, - "node_modules/core-util-is": { - "version": "1.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/coveralls": { - "version": "3.1.1", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "js-yaml": "^3.13.1", - "lcov-parse": "^1.0.0", - "log-driver": "^1.2.7", - "minimist": "^1.2.5", - "request": "^2.88.2" - }, - "bin": { - "coveralls": "bin/coveralls.js" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/cross-spawn": { "version": "7.0.6", "dev": true, @@ -1499,15 +2420,46 @@ "node": ">= 8" } }, - "node_modules/dashdash": { - "version": "1.14.1", + "node_modules/cssom": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", + "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", + "dev": true, + "license": "MIT" + }, + "node_modules/cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", "dev": true, "license": "MIT", "dependencies": { - "assert-plus": "^1.0.0" + "cssom": "~0.3.6" }, "engines": { - "node": ">=0.10" + "node": ">=8" + } + }, + "node_modules/cssstyle/node_modules/cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", + "dev": true, + "license": "MIT" + }, + "node_modules/data-urls": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", + "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "abab": "^2.0.3", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0" + }, + "engines": { + "node": ">=10" } }, "node_modules/data-view-buffer": { @@ -1559,7 +2511,9 @@ } }, "node_modules/debug": { - "version": "4.4.1", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "dev": true, "license": "MIT", "dependencies": { @@ -1574,13 +2528,12 @@ } } }, - "node_modules/decamelize": { - "version": "1.2.0", + "node_modules/decimal.js": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz", + "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } + "license": "MIT" }, "node_modules/decode-named-character-reference": { "version": "1.1.0", @@ -1594,31 +2547,26 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/dedent": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", + "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", + "dev": true, + "license": "MIT" + }, "node_modules/deep-is": { "version": "0.1.4", "dev": true, "license": "MIT" }, - "node_modules/default-require-extensions": { - "version": "3.0.1", + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true, "license": "MIT", - "dependencies": { - "strip-bom": "^4.0.0" - }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/default-require-extensions/node_modules/strip-bom": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, "node_modules/define-data-property": { @@ -1669,6 +2617,29 @@ "node": ">=6" } }, + "node_modules/detect-indent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-7.0.2.tgz", + "integrity": "sha512-y+8xyqdGLL+6sh0tVeHcfP/QDd8gUgbasolJJpY7NgeQGSZ739bDtSiaiDgtoicy+mtYB81dKLxO9xRhCyIB3A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/devlop": { "version": "1.1.0", "dev": true, @@ -1681,14 +2652,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/diff": { - "version": "3.5.0", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.3.1" - } - }, "node_modules/diff-sequences": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", @@ -1710,6 +2673,30 @@ "node": ">=0.10.0" } }, + "node_modules/domexception": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", + "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", + "deprecated": "Use your platform's native DOMException instead", + "dev": true, + "license": "MIT", + "dependencies": { + "webidl-conversions": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/domexception/node_modules/webidl-conversions": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", + "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=8" + } + }, "node_modules/dunder-proto": { "version": "1.0.1", "dev": true, @@ -1723,20 +2710,26 @@ "node": ">= 0.4" } }, - "node_modules/ecc-jsbn": { - "version": "0.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, "node_modules/electron-to-chromium": { - "version": "1.5.166", + "version": "1.5.267", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz", + "integrity": "sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==", "dev": true, "license": "ISC" }, + "node_modules/emittery": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", + "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, "node_modules/emoji-regex": { "version": "8.0.0", "dev": true, @@ -1754,6 +2747,16 @@ "node": ">=10.13.0" } }, + "node_modules/error-ex": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz", + "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, "node_modules/es-abstract": { "version": "1.24.0", "dev": true, @@ -1889,11 +2892,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/es6-error": { - "version": "4.1.1", - "dev": true, - "license": "MIT" - }, "node_modules/escalade": { "version": "3.2.0", "dev": true, @@ -1904,38 +2902,63 @@ }, "node_modules/escape-string-regexp": { "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "dev": true, "license": "MIT", "engines": { "node": ">=0.8.0" } }, + "node_modules/escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, "node_modules/eslint": { - "version": "9.28.0", + "version": "9.39.2", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.2.tgz", + "integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.20.0", - "@eslint/config-helpers": "^0.2.1", - "@eslint/core": "^0.14.0", + "@eslint/config-array": "^0.21.1", + "@eslint/config-helpers": "^0.4.2", + "@eslint/core": "^0.17.0", "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.28.0", - "@eslint/plugin-kit": "^0.3.1", + "@eslint/js": "9.39.2", + "@eslint/plugin-kit": "^0.4.1", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", "@types/estree": "^1.0.6", - "@types/json-schema": "^7.0.15", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.6", "debug": "^4.3.2", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.3.0", - "eslint-visitor-keys": "^4.2.0", - "espree": "^10.3.0", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", @@ -1984,7 +3007,9 @@ } }, "node_modules/eslint-config-prettier": { - "version": "10.1.5", + "version": "10.1.8", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-10.1.8.tgz", + "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", "dev": true, "license": "MIT", "bin": { @@ -1998,29 +3023,37 @@ } }, "node_modules/eslint-config-webpack": { - "version": "4.0.8", + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/eslint-config-webpack/-/eslint-config-webpack-4.7.3.tgz", + "integrity": "sha512-SxM6fm1IG/YP9Jays5XNYvrKAYAn8B+0D2J8kNyBgEAFvZ28uENxcTFKAJ45hp0Uuv/lwtXMZIK2BvDSGk+H3A==", "dev": true, "license": "MIT", "dependencies": { - "semver": "^7.7.2" + "detect-indent": "^7.0.2", + "jsonc-eslint-parser": "^2.4.2", + "semver": "^7.7.3", + "sort-package-json": "^3.6.0" }, "engines": { - "node": ">= 18.20.0" + "node": ">= 20.9.0" }, "peerDependencies": { "@eslint/js": ">= 9.28.0", - "@eslint/markdown": ">= 6.5.0", + "@eslint/markdown": ">= 7.1.0", "@stylistic/eslint-plugin": ">= 4.4.1", "eslint": ">= 9.28.0", - "eslint-config-prettier": "^10.1.5", + "eslint-config-prettier": "^10.1.8", "eslint-plugin-import": ">= 2.31.0", "eslint-plugin-jest": ">= 28.12.0", "eslint-plugin-jsdoc": ">= 50.7.1", "eslint-plugin-n": ">= 17.19.0", - "eslint-plugin-prettier": ">= 5.4.1", - "eslint-plugin-unicorn": ">= 59.0.1", - "globals": ">= 16.2.0", - "prettier": ">= 3.5.3" + "eslint-plugin-prettier": ">= 5.5.3", + "eslint-plugin-react": ">= 7.37.5", + "eslint-plugin-unicorn": ">= 60.0.0", + "globals": ">= 16.5.0", + "prettier": ">= 3.5.3", + "typescript": ">= 5.0.0", + "typescript-eslint": ">= 8.50.0" }, "peerDependenciesMeta": { "@eslint/markdown": { @@ -2034,6 +3067,15 @@ }, "eslint-plugin-n": { "optional": true + }, + "eslint-plugin-react": { + "optional": true + }, + "typescript": { + "optional": true + }, + "typescript-eslint": { + "optional": true } } }, @@ -2056,7 +3098,9 @@ } }, "node_modules/eslint-module-utils": { - "version": "2.12.0", + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.1.tgz", + "integrity": "sha512-L8jSWTze7K2mTg0vos/RuLRS5soomksDPoJLXIslC7c8Wmut3bx7CPpJijDcBZtxQ5lrbUdM+s0OlNbz0DCDNw==", "dev": true, "license": "MIT", "dependencies": { @@ -2073,6 +3117,8 @@ }, "node_modules/eslint-module-utils/node_modules/debug": { "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, "license": "MIT", "dependencies": { @@ -2100,28 +3146,30 @@ } }, "node_modules/eslint-plugin-import": { - "version": "2.31.0", + "version": "2.32.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz", + "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==", "dev": true, "license": "MIT", "dependencies": { "@rtsao/scc": "^1.1.0", - "array-includes": "^3.1.8", - "array.prototype.findlastindex": "^1.2.5", - "array.prototype.flat": "^1.3.2", - "array.prototype.flatmap": "^1.3.2", + "array-includes": "^3.1.9", + "array.prototype.findlastindex": "^1.2.6", + "array.prototype.flat": "^1.3.3", + "array.prototype.flatmap": "^1.3.3", "debug": "^3.2.7", "doctrine": "^2.1.0", "eslint-import-resolver-node": "^0.3.9", - "eslint-module-utils": "^2.12.0", + "eslint-module-utils": "^2.12.1", "hasown": "^2.0.2", - "is-core-module": "^2.15.1", + "is-core-module": "^2.16.1", "is-glob": "^4.0.3", "minimatch": "^3.1.2", "object.fromentries": "^2.0.8", "object.groupby": "^1.0.3", - "object.values": "^1.2.0", + "object.values": "^1.2.1", "semver": "^6.3.1", - "string.prototype.trimend": "^1.0.8", + "string.prototype.trimend": "^1.0.9", "tsconfig-paths": "^3.15.0" }, "engines": { @@ -2148,18 +3196,20 @@ } }, "node_modules/eslint-plugin-jest": { - "version": "28.13.3", + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-29.5.0.tgz", + "integrity": "sha512-DAi9H8xN/TUuNOt+xDP1RqpCJLsSxBb5u1zXSpCyp0VAWGL8MBAg5t7/Dk+76iX7d1LhWu4DDH77IQNUolLDyg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/utils": "^6.0.0 || ^7.0.0 || ^8.0.0" + "@typescript-eslint/utils": "^8.0.0" }, "engines": { - "node": "^16.10.0 || ^18.12.0 || >=20.0.0" + "node": "^20.12.0 || ^22.0.0 || >=24.0.0" }, "peerDependencies": { - "@typescript-eslint/eslint-plugin": "^6.0.0 || ^7.0.0 || ^8.0.0", - "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0", + "@typescript-eslint/eslint-plugin": "^8.0.0", + "eslint": "^8.57.0 || ^9.0.0", "jest": "*" }, "peerDependenciesMeta": { @@ -2172,23 +3222,29 @@ } }, "node_modules/eslint-plugin-jsdoc": { - "version": "50.7.1", + "version": "61.5.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-61.5.0.tgz", + "integrity": "sha512-PR81eOGq4S7diVnV9xzFSBE4CDENRQGP0Lckkek8AdHtbj+6Bm0cItwlFnxsLFriJHspiE3mpu8U20eODyToIg==", "dev": true, "license": "BSD-3-Clause", "dependencies": { - "@es-joy/jsdoccomment": "~0.50.2", + "@es-joy/jsdoccomment": "~0.76.0", + "@es-joy/resolve.exports": "1.2.0", "are-docs-informative": "^0.0.2", "comment-parser": "1.4.1", - "debug": "^4.4.1", + "debug": "^4.4.3", "escape-string-regexp": "^4.0.0", - "espree": "^10.3.0", + "espree": "^10.4.0", "esquery": "^1.6.0", + "html-entities": "^2.6.0", + "object-deep-merge": "^2.0.0", "parse-imports-exports": "^0.2.4", - "semver": "^7.7.2", - "spdx-expression-parse": "^4.0.0" + "semver": "^7.7.3", + "spdx-expression-parse": "^4.0.0", + "to-valid-identifier": "^1.0.0" }, "engines": { - "node": ">=18" + "node": ">=20.11.0" }, "peerDependencies": { "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0" @@ -2206,18 +3262,19 @@ } }, "node_modules/eslint-plugin-n": { - "version": "17.19.0", + "version": "17.23.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-17.23.1.tgz", + "integrity": "sha512-68PealUpYoHOBh332JLLD9Sj7OQUDkFpmcfqt8R9sySfFSeuGJjMTJQvCRRB96zO3A/PELRLkPrzsHmzEFQQ5A==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.5.0", - "@typescript-eslint/utils": "^8.26.1", "enhanced-resolve": "^5.17.1", "eslint-plugin-es-x": "^7.8.0", "get-tsconfig": "^4.8.1", "globals": "^15.11.0", + "globrex": "^0.1.2", "ignore": "^5.3.2", - "minimatch": "^9.0.5", "semver": "^7.6.3", "ts-declaration-location": "^1.0.6" }, @@ -2231,14 +3288,6 @@ "eslint": ">=8.23.0" } }, - "node_modules/eslint-plugin-n/node_modules/brace-expansion": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, "node_modules/eslint-plugin-n/node_modules/globals": { "version": "15.15.0", "dev": true, @@ -2250,22 +3299,10 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint-plugin-n/node_modules/minimatch": { - "version": "9.0.5", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/eslint-plugin-prettier": { - "version": "5.4.1", + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.5.4.tgz", + "integrity": "sha512-swNtI95SToIz05YINMA6Ox5R057IMAmWZ26GqPxusAp1TZzj+IdY9tXNWWD3vkF/wEqydCONcwjTFpxybBqZsg==", "dev": true, "license": "MIT", "dependencies": { @@ -2294,59 +3331,39 @@ } }, "node_modules/eslint-plugin-unicorn": { - "version": "59.0.1", + "version": "62.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-62.0.0.tgz", + "integrity": "sha512-HIlIkGLkvf29YEiS/ImuDZQbP12gWyx5i3C6XrRxMvVdqMroCI9qoVYCoIl17ChN+U89pn9sVwLxhIWj5nEc7g==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-validator-identifier": "^7.25.9", - "@eslint-community/eslint-utils": "^4.5.1", - "@eslint/plugin-kit": "^0.2.7", - "ci-info": "^4.2.0", + "@babel/helper-validator-identifier": "^7.28.5", + "@eslint-community/eslint-utils": "^4.9.0", + "@eslint/plugin-kit": "^0.4.0", + "change-case": "^5.4.4", + "ci-info": "^4.3.1", "clean-regexp": "^1.0.0", - "core-js-compat": "^3.41.0", + "core-js-compat": "^3.46.0", "esquery": "^1.6.0", "find-up-simple": "^1.0.1", - "globals": "^16.0.0", + "globals": "^16.4.0", "indent-string": "^5.0.0", "is-builtin-module": "^5.0.0", "jsesc": "^3.1.0", "pluralize": "^8.0.0", "regexp-tree": "^0.1.27", - "regjsparser": "^0.12.0", - "semver": "^7.7.1", - "strip-indent": "^4.0.0" + "regjsparser": "^0.13.0", + "semver": "^7.7.3", + "strip-indent": "^4.1.1" }, "engines": { - "node": "^18.20.0 || ^20.10.0 || >=21.0.0" + "node": "^20.10.0 || >=21.0.0" }, "funding": { "url": "https://github.com/sindresorhus/eslint-plugin-unicorn?sponsor=1" }, "peerDependencies": { - "eslint": ">=9.22.0" - } - }, - "node_modules/eslint-plugin-unicorn/node_modules/@eslint/core": { - "version": "0.13.0", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/eslint-plugin-unicorn/node_modules/@eslint/plugin-kit": { - "version": "0.2.8", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.13.0", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + "eslint": ">=9.38.0" } }, "node_modules/eslint-scope": { @@ -2509,18 +3526,54 @@ "node": ">=0.10.0" } }, - "node_modules/extend": { - "version": "3.0.2", + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, - "license": "MIT" + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } }, - "node_modules/extsprintf": { - "version": "1.3.0", + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", "dev": true, - "engines": [ - "node >=0.6.0" - ], - "license": "MIT" + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", + "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } }, "node_modules/fast-deep-equal": { "version": "3.1.3", @@ -2529,6 +3582,8 @@ }, "node_modules/fast-diff": { "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", "dev": true, "license": "Apache-2.0" }, @@ -2554,6 +3609,16 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "bser": "2.1.1" + } + }, "node_modules/fdir": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", @@ -2583,20 +3648,17 @@ "node": ">=16.0.0" } }, - "node_modules/find-cache-dir": { - "version": "3.3.2", + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "license": "MIT", "dependencies": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" + "to-regex-range": "^5.0.1" }, "engines": { "node": ">=8" - }, - "funding": { - "url": "https://github.com/avajs/find-cache-dir?sponsor=1" } }, "node_modules/find-up": { @@ -2613,6 +3675,8 @@ }, "node_modules/find-up-simple": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/find-up-simple/-/find-up-simple-1.0.1.tgz", + "integrity": "sha512-afd4O7zpqHeRyg4PfDQsXmlDe2PfdHtJt6Akt8jOWaApLOZk5JXs6VMR29lz03pRe9mpykrRCYIYxaJYcfpncQ==", "dev": true, "license": "MIT", "engines": { @@ -2653,39 +3717,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/foreground-child": { - "version": "2.0.0", - "dev": true, - "license": "ISC", - "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^3.0.2" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/forever-agent": { - "version": "0.6.1", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "*" - } - }, - "node_modules/form-data": { - "version": "2.3.3", - "dev": true, - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 0.12" - } - }, "node_modules/format": { "version": "0.2.2", "dev": true, @@ -2693,30 +3724,26 @@ "node": ">=0.4.x" } }, - "node_modules/fromentries": { - "version": "1.3.2", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, "node_modules/fs.realpath": { "version": "1.0.0", "dev": true, "license": "ISC" }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, "node_modules/function-bind": { "version": "1.1.2", "dev": true, @@ -2811,6 +3838,19 @@ "node": ">= 0.4" } }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/get-symbol-description": { "version": "1.1.0", "dev": true, @@ -2838,14 +3878,23 @@ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" } }, - "node_modules/getpass": { - "version": "0.1.7", + "node_modules/git-hooks-list": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/git-hooks-list/-/git-hooks-list-4.1.1.tgz", + "integrity": "sha512-cmP497iLq54AZnv4YRAEMnEyQ1eIn4tGKbmswqwmFV4GBnAqE8NLtWxxdXa++AalfgL5EBH4IxTPyquEuGY/jA==", "dev": true, "license": "MIT", - "dependencies": { - "assert-plus": "^1.0.0" + "funding": { + "url": "https://github.com/fisker/git-hooks-list?sponsor=1" } }, + "node_modules/github-slugger": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-2.0.0.tgz", + "integrity": "sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==", + "dev": true, + "license": "ISC" + }, "node_modules/glob": { "version": "7.2.3", "dev": true, @@ -2881,7 +3930,9 @@ "license": "BSD-2-Clause" }, "node_modules/globals": { - "version": "16.2.0", + "version": "16.5.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz", + "integrity": "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==", "dev": true, "license": "MIT", "engines": { @@ -2906,6 +3957,13 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/globrex": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz", + "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==", + "dev": true, + "license": "MIT" + }, "node_modules/gopd": { "version": "1.2.0", "dev": true, @@ -2921,34 +3979,6 @@ "version": "4.2.11", "license": "ISC" }, - "node_modules/growl": { - "version": "1.10.5", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4.x" - } - }, - "node_modules/har-schema": { - "version": "2.0.0", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=4" - } - }, - "node_modules/har-validator": { - "version": "5.1.5", - "dev": true, - "license": "MIT", - "dependencies": { - "ajv": "^6.12.3", - "har-schema": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/has-bigints": { "version": "1.1.0", "dev": true, @@ -3018,57 +4048,102 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/hasha": { - "version": "5.2.2", + "node_modules/hasown": { + "version": "2.0.2", "dev": true, "license": "MIT", "dependencies": { - "is-stream": "^2.0.0", - "type-fest": "^0.8.0" + "function-bind": "^1.1.2" }, "engines": { - "node": ">=8" + "node": ">= 0.4" + } + }, + "node_modules/html-encoding-sniffer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", + "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "whatwg-encoding": "^1.0.5" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">=10" } }, - "node_modules/hasown": { + "node_modules/html-entities": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.6.0.tgz", + "integrity": "sha512-kig+rMn/QOVRvr7c86gQ8lWXq+Hkv6CbAH1hLu+RG338StTpE8Z0b44SDVaqVu7HGKf27frdmUYEs9hTUX/cLQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/mdevils" + }, + { + "type": "patreon", + "url": "https://patreon.com/mdevils" + } + ], + "license": "MIT" + }, + "node_modules/html-escaper": { "version": "2.0.2", "dev": true, + "license": "MIT" + }, + "node_modules/http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "dev": true, "license": "MIT", "dependencies": { - "function-bind": "^1.1.2" + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" }, "engines": { - "node": ">= 0.4" + "node": ">= 6" } }, - "node_modules/he": { - "version": "1.1.1", + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", "dev": true, "license": "MIT", - "bin": { - "he": "bin/he" + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" } }, - "node_modules/html-escaper": { - "version": "2.0.2", + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true, - "license": "MIT" + "license": "Apache-2.0", + "engines": { + "node": ">=10.17.0" + } }, - "node_modules/http-signature": { - "version": "1.2.0", + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dev": true, "license": "MIT", "dependencies": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" + "safer-buffer": ">= 2.1.2 < 3" }, "engines": { - "node": ">=0.8", - "npm": ">=1.3.7" + "node": ">=0.10.0" } }, "node_modules/ignore": { @@ -3102,6 +4177,26 @@ "node": ">=4" } }, + "node_modules/import-local": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", + "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/imurmurhash": { "version": "0.1.4", "dev": true, @@ -3112,6 +4207,8 @@ }, "node_modules/indent-string": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz", + "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==", "dev": true, "license": "MIT", "engines": { @@ -3164,6 +4261,13 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true, + "license": "MIT" + }, "node_modules/is-async-function": { "version": "2.1.1", "dev": true, @@ -3213,6 +4317,8 @@ }, "node_modules/is-builtin-module": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-5.0.0.tgz", + "integrity": "sha512-f4RqJKBUe5rQkJ2eJEJBXSticB3hGbN9j0yxxMQFqIW89Jp9WYFtzfTcRlstDKVUTRzSOTLKRfO9vIztenwtxA==", "dev": true, "license": "MIT", "dependencies": { @@ -3311,6 +4417,16 @@ "node": ">=8" } }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/is-generator-function": { "version": "1.1.0", "dev": true, @@ -3361,6 +4477,16 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, "node_modules/is-number-object": { "version": "1.1.1", "dev": true, @@ -3376,6 +4502,26 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", + "dev": true, + "license": "MIT" + }, "node_modules/is-regex": { "version": "1.2.1", "dev": true, @@ -3519,14 +4665,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-windows": { - "version": "1.0.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/isarray": { "version": "2.0.5", "dev": true, @@ -3537,11 +4675,6 @@ "dev": true, "license": "ISC" }, - "node_modules/isstream": { - "version": "0.1.2", - "dev": true, - "license": "MIT" - }, "node_modules/istanbul-lib-coverage": { "version": "3.2.2", "dev": true, @@ -3550,169 +4683,824 @@ "node": ">=8" } }, - "node_modules/istanbul-lib-hook": { - "version": "3.0.0", + "node_modules/istanbul-lib-report": { + "version": "3.0.1", "dev": true, "license": "BSD-3-Clause", "dependencies": { - "append-transform": "^2.0.0" + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=8" + "node": ">=10" } }, - "node_modules/istanbul-lib-instrument": { - "version": "4.0.3", + "node_modules/istanbul-lib-report/node_modules/make-dir": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", "dev": true, "license": "BSD-3-Clause", "dependencies": { - "@babel/core": "^7.7.5", - "@istanbuljs/schema": "^0.1.2", + "debug": "^4.1.1", "istanbul-lib-coverage": "^3.0.0", - "semver": "^6.3.0" + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.7", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" }, "engines": { "node": ">=8" } }, - "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "6.3.1", + "node_modules/jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", + "integrity": "sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ==", "dev": true, - "license": "ISC", + "license": "MIT", + "dependencies": { + "@jest/core": "^27.5.1", + "import-local": "^3.0.2", + "jest-cli": "^27.5.1" + }, "bin": { - "semver": "bin/semver.js" + "jest": "bin/jest.js" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } } }, - "node_modules/istanbul-lib-processinfo": { - "version": "2.0.3", + "node_modules/jest-changed-files": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz", + "integrity": "sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==", "dev": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "archy": "^1.0.0", - "cross-spawn": "^7.0.3", - "istanbul-lib-coverage": "^3.2.0", - "p-map": "^3.0.0", - "rimraf": "^3.0.0", - "uuid": "^8.3.2" + "@jest/types": "^27.5.1", + "execa": "^5.0.0", + "throat": "^6.0.1" }, "engines": { - "node": ">=8" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/istanbul-lib-processinfo/node_modules/rimraf": { - "version": "3.0.2", + "node_modules/jest-circus": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-27.5.1.tgz", + "integrity": "sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==", "dev": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "glob": "^7.1.3" + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^0.7.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-cli": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-27.5.1.tgz", + "integrity": "sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/core": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "import-local": "^3.0.2", + "jest-config": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "prompts": "^2.0.1", + "yargs": "^16.2.0" }, "bin": { - "rimraf": "bin.js" + "jest": "bin/jest.js" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-cli/node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/jest-cli/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/istanbul-lib-processinfo/node_modules/uuid": { - "version": "8.3.2", + "node_modules/jest-cli/node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-cli/node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "dev": true, "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" } }, - "node_modules/istanbul-lib-report": { - "version": "3.0.1", + "node_modules/jest-cli/node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "dev": true, - "license": "BSD-3-Clause", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-config": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-27.5.1.tgz", + "integrity": "sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==", + "dev": true, + "license": "MIT", "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^4.0.0", - "supports-color": "^7.1.0" + "@babel/core": "^7.8.0", + "@jest/test-sequencer": "^27.5.1", + "@jest/types": "^27.5.1", + "babel-jest": "^27.5.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.9", + "jest-circus": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-jasmine2": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-config/node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-diff": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", + "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-docblock": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.5.1.tgz", + "integrity": "sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-each": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-27.5.1.tgz", + "integrity": "sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-jsdom": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz", + "integrity": "sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1", + "jsdom": "^16.6.0" }, "engines": { - "node": ">=10" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz", + "integrity": "sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", + "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.5.1.tgz", + "integrity": "sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^27.5.1", + "jest-serializer": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "micromatch": "^4.0.4", + "walker": "^1.0.7" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-jasmine2": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz", + "integrity": "sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-leak-detector": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz", + "integrity": "sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", + "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", + "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-mock": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", + "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz", + "integrity": "sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz", + "integrity": "sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "resolve": "^1.20.0", + "resolve.exports": "^1.1.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz", + "integrity": "sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-snapshot": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-runner": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-27.5.1.tgz", + "integrity": "sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-leak-detector": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "source-map-support": "^0.5.6", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.5.1.tgz", + "integrity": "sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/globals": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "execa": "^5.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-runtime/node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-serializer": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz", + "integrity": "sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", + "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.7.2", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/traverse": "^7.7.2", + "@babel/types": "^7.0.0", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.1.5", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "natural-compare": "^1.4.0", + "pretty-format": "^27.5.1", + "semver": "^7.3.2" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", + "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-util/node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" } }, - "node_modules/istanbul-lib-report/node_modules/make-dir": { - "version": "4.0.0", + "node_modules/jest-util/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, "license": "MIT", - "dependencies": { - "semver": "^7.5.3" - }, "engines": { - "node": ">=10" + "node": ">=8.6" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/istanbul-lib-source-maps": { - "version": "4.0.1", + "node_modules/jest-validate": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-27.5.1.tgz", + "integrity": "sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==", "dev": true, - "license": "BSD-3-Clause", + "license": "MIT", "dependencies": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" + "@jest/types": "^27.5.1", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "leven": "^3.1.0", + "pretty-format": "^27.5.1" }, "engines": { - "node": ">=10" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/istanbul-reports": { - "version": "3.1.7", + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - }, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/jest-diff": { + "node_modules/jest-watcher": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", - "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.5.1.tgz", + "integrity": "sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==", "dev": true, "license": "MIT", "dependencies": { + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", - "diff-sequences": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" + "jest-util": "^27.5.1", + "string-length": "^4.0.1" }, "engines": { "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/jest-get-type": { + "node_modules/jest-worker": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", "dev": true, "license": "MIT", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">= 10.13.0" } }, - "node_modules/jest-matcher-utils": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", - "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "license": "MIT", "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" + "has-flag": "^4.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" } }, "node_modules/js-tokens": { @@ -3734,17 +5522,94 @@ "js-yaml": "bin/js-yaml.js" } }, - "node_modules/jsbn": { - "version": "0.1.1", - "dev": true, - "license": "MIT" - }, "node_modules/jsdoc-type-pratt-parser": { - "version": "4.1.0", + "version": "6.10.0", + "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-6.10.0.tgz", + "integrity": "sha512-+LexoTRyYui5iOhJGn13N9ZazL23nAHGkXsa1p/C8yeq79WRfLBag6ZZ0FQG2aRoc9yfo59JT9EYCQonOkHKkQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/jsdom": { + "version": "16.7.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", + "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", + "dev": true, + "license": "MIT", + "dependencies": { + "abab": "^2.0.5", + "acorn": "^8.2.4", + "acorn-globals": "^6.0.0", + "cssom": "^0.4.4", + "cssstyle": "^2.3.0", + "data-urls": "^2.0.0", + "decimal.js": "^10.2.1", + "domexception": "^2.0.1", + "escodegen": "^2.0.0", + "form-data": "^3.0.0", + "html-encoding-sniffer": "^2.0.1", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.0", + "parse5": "6.0.1", + "saxes": "^5.0.1", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.0.0", + "w3c-hr-time": "^1.0.2", + "w3c-xmlserializer": "^2.0.0", + "webidl-conversions": "^6.1.0", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.5.0", + "ws": "^7.4.6", + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsdom/node_modules/form-data": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.4.tgz", + "integrity": "sha512-f0cRzm6dkyVYV3nPoooP8XlccPQukegwhAnpoLcXy+X+A8KfpGOoXwDr9FLZd3wzgLaBGQBE3lY93Zm/i1JvIQ==", "dev": true, "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.35" + }, "engines": { - "node": ">=12.0.0" + "node": ">= 6" + } + }, + "node_modules/jsdom/node_modules/tough-cookie": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz", + "integrity": "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + }, + "engines": { + "node": ">=6" } }, "node_modules/jsesc": { @@ -3763,10 +5628,12 @@ "dev": true, "license": "MIT" }, - "node_modules/json-schema": { - "version": "0.4.0", + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true, - "license": "(AFL-2.1 OR BSD-3-Clause)" + "license": "MIT" }, "node_modules/json-schema-traverse": { "version": "0.4.1", @@ -3778,11 +5645,6 @@ "dev": true, "license": "MIT" }, - "node_modules/json-stringify-safe": { - "version": "5.0.1", - "dev": true, - "license": "ISC" - }, "node_modules/json5": { "version": "1.0.2", "dev": true, @@ -3794,18 +5656,54 @@ "json5": "lib/cli.js" } }, - "node_modules/jsprim": { - "version": "1.4.2", + "node_modules/jsonc-eslint-parser": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/jsonc-eslint-parser/-/jsonc-eslint-parser-2.4.2.tgz", + "integrity": "sha512-1e4qoRgnn448pRuMvKGsFFymUCquZV0mpGgOyIKNgD3JVDTsVJyRBGH/Fm0tBb8WsWGgmB1mDe6/yJMQM37DUA==", "dev": true, "license": "MIT", "dependencies": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.4.0", - "verror": "1.10.0" + "acorn": "^8.5.0", + "eslint-visitor-keys": "^3.0.0", + "espree": "^9.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ota-meshi" + } + }, + "node_modules/jsonc-eslint-parser/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/jsonc-eslint-parser/node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" }, "engines": { - "node": ">=0.6.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/keyv": { @@ -3816,12 +5714,24 @@ "json-buffer": "3.0.1" } }, - "node_modules/lcov-parse": { - "version": "1.0.0", + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", "dev": true, - "license": "BSD-3-Clause", - "bin": { - "lcov-parse": "bin/cli.js" + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" } }, "node_modules/levn": { @@ -3836,6 +5746,13 @@ "node": ">= 0.8.0" } }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT" + }, "node_modules/locate-path": { "version": "5.0.0", "dev": true, @@ -3847,8 +5764,10 @@ "node": ">=8" } }, - "node_modules/lodash.flattendeep": { - "version": "4.4.0", + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", "dev": true, "license": "MIT" }, @@ -3857,14 +5776,6 @@ "dev": true, "license": "MIT" }, - "node_modules/log-driver": { - "version": "1.2.7", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=0.8.6" - } - }, "node_modules/longest-streak": { "version": "3.1.0", "dev": true, @@ -3882,26 +5793,14 @@ "yallist": "^3.0.2" } }, - "node_modules/make-dir": { - "version": "3.1.0", + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", "dev": true, - "license": "MIT", + "license": "BSD-3-Clause", "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/make-dir/node_modules/semver": { - "version": "6.3.1", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" + "tmpl": "1.0.5" } }, "node_modules/markdown-table": { @@ -4138,6 +6037,13 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true, + "license": "MIT" + }, "node_modules/micromark": { "version": "4.0.2", "dev": true, @@ -4688,138 +6594,64 @@ ], "license": "MIT" }, - "node_modules/mime-db": { - "version": "1.52.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, "license": "MIT", "dependencies": { - "mime-db": "1.52.0" + "braces": "^3.0.3", + "picomatch": "^2.3.1" }, "engines": { - "node": ">= 0.6" + "node": ">=8.6" } }, - "node_modules/min-indent": { - "version": "1.0.1", + "node_modules/micromatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, "license": "MIT", "engines": { - "node": ">=4" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" + "node": ">=8.6" }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "dev": true, - "license": "MIT", "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/mkdirp": { - "version": "0.5.1", - "dev": true, - "license": "MIT", - "dependencies": { - "minimist": "0.0.8" - }, - "bin": { - "mkdirp": "bin/cmd.js" + "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/mkdirp/node_modules/minimist": { - "version": "0.0.8", - "dev": true, - "license": "MIT" - }, - "node_modules/mocha": { - "version": "5.2.0", + "node_modules/mime-db": { + "version": "1.52.0", "dev": true, "license": "MIT", - "dependencies": { - "browser-stdout": "1.3.1", - "commander": "2.15.1", - "debug": "3.1.0", - "diff": "3.5.0", - "escape-string-regexp": "1.0.5", - "glob": "7.1.2", - "growl": "1.10.5", - "he": "1.1.1", - "minimatch": "3.0.4", - "mkdirp": "0.5.1", - "supports-color": "5.4.0" - }, - "bin": { - "_mocha": "bin/_mocha", - "mocha": "bin/mocha" - }, "engines": { - "node": ">= 4.0.0" + "node": ">= 0.6" } }, - "node_modules/mocha/node_modules/debug": { - "version": "3.1.0", + "node_modules/mime-types": { + "version": "2.1.35", "dev": true, "license": "MIT", "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/mocha/node_modules/glob": { - "version": "7.1.2", - "dev": true, - "license": "ISC", - "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" - }, - "engines": { - "node": "*" - } - }, - "node_modules/mocha/node_modules/glob/node_modules/minimatch": { - "version": "3.1.2", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" + "mime-db": "1.52.0" }, "engines": { - "node": "*" + "node": ">= 0.6" } }, - "node_modules/mocha/node_modules/has-flag": { - "version": "3.0.0", + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true, "license": "MIT", "engines": { - "node": ">=4" + "node": ">=6" } }, - "node_modules/mocha/node_modules/minimatch": { - "version": "3.0.4", + "node_modules/minimatch": { + "version": "3.1.2", "dev": true, "license": "ISC", "dependencies": { @@ -4829,20 +6661,12 @@ "node": "*" } }, - "node_modules/mocha/node_modules/ms": { - "version": "2.0.0", - "dev": true, - "license": "MIT" - }, - "node_modules/mocha/node_modules/supports-color": { - "version": "5.4.0", + "node_modules/minimist": { + "version": "1.2.8", "dev": true, "license": "MIT", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/ms": { @@ -4855,83 +6679,56 @@ "dev": true, "license": "MIT" }, - "node_modules/node-preload": { - "version": "0.2.1", + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", "dev": true, - "license": "MIT", - "dependencies": { - "process-on-spawn": "^1.0.0" - }, - "engines": { - "node": ">=8" - } + "license": "MIT" }, "node_modules/node-releases": { - "version": "2.0.19", + "version": "2.0.27", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", + "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", "dev": true, "license": "MIT" }, - "node_modules/nyc": { - "version": "15.1.0", + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, - "license": "ISC", - "dependencies": { - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "caching-transform": "^4.0.0", - "convert-source-map": "^1.7.0", - "decamelize": "^1.2.0", - "find-cache-dir": "^3.2.0", - "find-up": "^4.1.0", - "foreground-child": "^2.0.0", - "get-package-type": "^0.1.0", - "glob": "^7.1.6", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-hook": "^3.0.0", - "istanbul-lib-instrument": "^4.0.0", - "istanbul-lib-processinfo": "^2.0.2", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.0.2", - "make-dir": "^3.0.0", - "node-preload": "^0.2.1", - "p-map": "^3.0.0", - "process-on-spawn": "^1.0.0", - "resolve-from": "^5.0.0", - "rimraf": "^3.0.0", - "signal-exit": "^3.0.2", - "spawn-wrap": "^2.0.0", - "test-exclude": "^6.0.0", - "yargs": "^15.0.2" - }, - "bin": { - "nyc": "bin/nyc.js" - }, + "license": "MIT", "engines": { - "node": ">=8.9" + "node": ">=0.10.0" } }, - "node_modules/nyc/node_modules/rimraf": { - "version": "3.0.2", + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "glob": "^7.1.3" + "path-key": "^3.0.0" }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "engines": { + "node": ">=8" } }, - "node_modules/oauth-sign": { - "version": "0.9.0", + "node_modules/nwsapi": { + "version": "2.2.23", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.23.tgz", + "integrity": "sha512-7wfH4sLbt4M0gCDzGE6vzQBo0bfTKjU7Sfpqy/7gs1qBfYz2vEJH6vXcBKpO3+6Yu1telwd0t9HpyOoLEQQbIQ==", "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "*" - } + "license": "MIT" + }, + "node_modules/object-deep-merge": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/object-deep-merge/-/object-deep-merge-2.0.0.tgz", + "integrity": "sha512-3DC3UMpeffLTHiuXSy/UG4NOIYTLlY9u3V82+djSCLYClWobZiS4ivYzpIUWrRY/nfsJ8cWsKyG3QfyLePmhvg==", + "dev": true, + "license": "MIT" }, "node_modules/object-inspect": { "version": "1.13.4", @@ -5026,6 +6823,22 @@ "wrappy": "1" } }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/optionator": { "version": "0.9.4", "dev": true, @@ -5083,17 +6896,6 @@ "node": ">=8" } }, - "node_modules/p-map": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/p-try": { "version": "2.2.0", "dev": true, @@ -5102,20 +6904,6 @@ "node": ">=6" } }, - "node_modules/package-hash": { - "version": "4.0.0", - "dev": true, - "license": "ISC", - "dependencies": { - "graceful-fs": "^4.1.15", - "hasha": "^5.0.0", - "lodash.flattendeep": "^4.4.0", - "release-zalgo": "^1.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/parent-module": { "version": "1.0.1", "dev": true, @@ -5135,11 +6923,37 @@ "parse-statements": "1.0.11" } }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/parse-statements": { "version": "1.0.11", "dev": true, "license": "MIT" }, + "node_modules/parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", + "dev": true, + "license": "MIT" + }, "node_modules/path-exists": { "version": "4.0.0", "dev": true, @@ -5169,11 +6983,6 @@ "dev": true, "license": "MIT" }, - "node_modules/performance-now": { - "version": "2.1.0", - "dev": true, - "license": "MIT" - }, "node_modules/picocolors": { "version": "1.1.1", "dev": true, @@ -5192,6 +7001,16 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, "node_modules/pkg-dir": { "version": "4.2.0", "dev": true, @@ -5205,6 +7024,8 @@ }, "node_modules/pluralize": { "version": "8.0.0", + "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", + "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", "dev": true, "license": "MIT", "engines": { @@ -5228,7 +7049,9 @@ } }, "node_modules/prettier": { - "version": "3.5.3", + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.7.4.tgz", + "integrity": "sha512-v6UNi1+3hSlVvv8fSaoUbggEM5VErKmmpGA7Pl3HF8V6uKY7rvClBOJlH6yNwQtfTueNkGVpOv/mtWL9L4bgRA==", "dev": true, "license": "MIT", "bin": { @@ -5243,6 +7066,8 @@ }, "node_modules/prettier-linter-helpers": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", "dev": true, "license": "MIT", "dependencies": { @@ -5280,15 +7105,18 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/process-on-spawn": { - "version": "1.1.0", + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", "dev": true, "license": "MIT", "dependencies": { - "fromentries": "^1.2.0" + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" }, "engines": { - "node": ">=8" + "node": ">= 6" } }, "node_modules/psl": { @@ -5310,13 +7138,12 @@ "node": ">=6" } }, - "node_modules/qs": { - "version": "6.5.3", + "node_modules/querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.6" - } + "license": "MIT" }, "node_modules/react-is": { "version": "17.0.2", @@ -5348,6 +7175,8 @@ }, "node_modules/regexp-tree": { "version": "0.1.27", + "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.27.tgz", + "integrity": "sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==", "dev": true, "license": "MIT", "bin": { @@ -5374,81 +7203,46 @@ } }, "node_modules/regjsparser": { - "version": "0.12.0", + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.13.0.tgz", + "integrity": "sha512-NZQZdC5wOE/H3UT28fVGL+ikOZcEzfMGk/c3iN9UGxzWHMa1op7274oyiUVrAG4B2EuFhus8SvkaYnhvW92p9Q==", "dev": true, "license": "BSD-2-Clause", "dependencies": { - "jsesc": "~3.0.2" + "jsesc": "~3.1.0" }, "bin": { "regjsparser": "bin/parser" } }, - "node_modules/regjsparser/node_modules/jsesc": { - "version": "3.0.2", + "node_modules/require-directory": { + "version": "2.1.1", "dev": true, "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, "engines": { - "node": ">=6" + "node": ">=0.10.0" } }, - "node_modules/release-zalgo": { + "node_modules/requires-port": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", "dev": true, - "license": "ISC", - "dependencies": { - "es6-error": "^4.0.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/request": { - "version": "2.88.2", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.3", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.5.0", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - }, - "engines": { - "node": ">= 6" - } + "license": "MIT" }, - "node_modules/require-directory": { - "version": "2.1.1", + "node_modules/reserved-identifiers": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/reserved-identifiers/-/reserved-identifiers-1.2.0.tgz", + "integrity": "sha512-yE7KUfFvaBFzGPs5H3Ops1RevfUEsDc5Iz65rOwWg4lE8HJSYtle77uul3+573457oHvBKuHYDl/xqUkKpEEdw==", "dev": true, "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/require-main-filename": { - "version": "2.0.0", - "dev": true, - "license": "ISC" - }, "node_modules/resolve": { "version": "1.22.10", "dev": true, @@ -5468,6 +7262,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/resolve-from": { "version": "5.0.0", "dev": true, @@ -5484,6 +7291,16 @@ "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" } }, + "node_modules/resolve.exports": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.1.tgz", + "integrity": "sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, "node_modules/rimraf": { "version": "2.7.1", "dev": true, @@ -5513,25 +7330,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, "node_modules/safe-push-apply": { "version": "1.0.0", "dev": true, @@ -5568,8 +7366,23 @@ "dev": true, "license": "MIT" }, + "node_modules/saxes": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", + "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", + "dev": true, + "license": "ISC", + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/semver": { - "version": "7.7.2", + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", "dev": true, "license": "ISC", "bin": { @@ -5579,11 +7392,6 @@ "node": ">=10" } }, - "node_modules/set-blocking": { - "version": "2.0.0", - "dev": true, - "license": "ISC" - }, "node_modules/set-function-length": { "version": "1.2.2", "dev": true, @@ -5646,37 +7454,6 @@ "node": ">=8" } }, - "node_modules/should": { - "version": "8.4.0", - "dev": true, - "license": "MIT", - "dependencies": { - "should-equal": "0.8.0", - "should-format": "0.3.2", - "should-type": "0.2.0" - } - }, - "node_modules/should-equal": { - "version": "0.8.0", - "dev": true, - "license": "MIT", - "dependencies": { - "should-type": "0.2.0" - } - }, - "node_modules/should-format": { - "version": "0.3.2", - "dev": true, - "license": "MIT", - "dependencies": { - "should-type": "0.2.0" - } - }, - "node_modules/should-type": { - "version": "0.2.0", - "dev": true, - "license": "MIT" - }, "node_modules/side-channel": { "version": "1.1.0", "dev": true, @@ -5739,16 +7516,75 @@ "side-channel-map": "^1.0.1" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "dev": true, + "license": "ISC" + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true, + "license": "MIT" + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/sort-object-keys": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/sort-object-keys/-/sort-object-keys-2.0.1.tgz", + "integrity": "sha512-R89fO+z3x7hiKPXX5P0qim+ge6Y60AjtlW+QQpRozrrNcR1lw9Pkpm5MLB56HoNvdcLHL4wbpq16OcvGpEDJIg==", + "dev": true, + "license": "MIT" + }, + "node_modules/sort-package-json": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/sort-package-json/-/sort-package-json-3.6.0.tgz", + "integrity": "sha512-fyJsPLhWvY7u2KsKPZn1PixbXp+1m7V8NWqU8CvgFRbMEX41Ffw1kD8n0CfJiGoaSfoAvbrqRRl/DcHO8omQOQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "detect-indent": "^7.0.2", + "detect-newline": "^4.0.1", + "git-hooks-list": "^4.1.1", + "is-plain-obj": "^4.1.0", + "semver": "^7.7.3", + "sort-object-keys": "^2.0.1", + "tinyglobby": "^0.2.15" + }, + "bin": { + "sort-package-json": "cli.js" + }, + "engines": { + "node": ">=20" } }, - "node_modules/signal-exit": { - "version": "3.0.7", + "node_modules/sort-package-json/node_modules/detect-newline": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-4.0.1.tgz", + "integrity": "sha512-qE3Veg1YXzGHQhlA6jzebZN2qVf6NX+A7m7qlhCGG30dJixrAQhYOsJjsnBjJkCSmuOPpCk30145fr8FV0bzog==", "dev": true, - "license": "ISC" + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, "node_modules/source-map": { "version": "0.6.1", @@ -5758,34 +7594,15 @@ "node": ">=0.10.0" } }, - "node_modules/spawn-wrap": { - "version": "2.0.0", - "dev": true, - "license": "ISC", - "dependencies": { - "foreground-child": "^2.0.0", - "is-windows": "^1.0.2", - "make-dir": "^3.0.0", - "rimraf": "^3.0.0", - "signal-exit": "^3.0.2", - "which": "^2.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/spawn-wrap/node_modules/rimraf": { - "version": "3.0.2", + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", "dev": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" } }, "node_modules/spdx-exceptions": { @@ -5812,28 +7629,27 @@ "dev": true, "license": "BSD-3-Clause" }, - "node_modules/sshpk": { - "version": "1.18.0", + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", "dev": true, "license": "MIT", "dependencies": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - }, - "bin": { - "sshpk-conv": "bin/sshpk-conv", - "sshpk-sign": "bin/sshpk-sign", - "sshpk-verify": "bin/sshpk-verify" + "escape-string-regexp": "^2.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" } }, "node_modules/stop-iteration-iterator": { @@ -5848,6 +7664,20 @@ "node": ">= 0.4" } }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/string-width": { "version": "4.2.3", "dev": true, @@ -5933,13 +7763,22 @@ "node": ">=4" } }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/strip-indent": { - "version": "4.0.0", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-4.1.1.tgz", + "integrity": "sha512-SlyRoSkdh1dYP0PzclLE7r0M9sgbFKKMFXpFRUMNuKhQSbC6VQIGzq3E0qsfvGJaUFJPGv6Ws1NZ/haTAjfbMA==", "dev": true, "license": "MIT", - "dependencies": { - "min-indent": "^1.0.1" - }, "engines": { "node": ">=12" }, @@ -5969,6 +7808,20 @@ "node": ">=8" } }, + "node_modules/supports-hyperlinks": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", + "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/supports-preserve-symlinks-flag": { "version": "1.0.0", "dev": true, @@ -5980,12 +7833,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true, + "license": "MIT" + }, "node_modules/synckit": { - "version": "0.11.8", + "version": "0.11.11", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.11.11.tgz", + "integrity": "sha512-MeQTA1r0litLUf0Rp/iisCaL8761lKAZHaimlbGK4j0HysC4PLfqygQj9srcs0m2RdtDYnF8UuYyKpbjHYp7Jw==", "dev": true, "license": "MIT", "dependencies": { - "@pkgr/core": "^0.2.4" + "@pkgr/core": "^0.2.9" }, "engines": { "node": "^14.18.0 || >=16.0.0" @@ -6002,6 +7864,23 @@ "node": ">=6" } }, + "node_modules/terminal-link": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", + "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-escapes": "^4.2.1", + "supports-hyperlinks": "^2.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/test-exclude": { "version": "6.0.0", "dev": true, @@ -6015,6 +7894,13 @@ "node": ">=8" } }, + "node_modules/throat": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.2.tgz", + "integrity": "sha512-WKexMoJj3vEuK0yFEapj8y64V0A6xcuPuK9Gt1d0R+dzCSJc0lHqQytAbSB4cDAK0dWh4T0E2ETkoLE2WZ41OQ==", + "dev": true, + "license": "MIT" + }, "node_modules/tinyglobby": { "version": "0.2.15", "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", @@ -6032,16 +7918,54 @@ "url": "https://github.com/sponsors/SuperchupuDev" } }, - "node_modules/tough-cookie": { - "version": "2.5.0", + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", "dev": true, - "license": "BSD-3-Clause", + "license": "BSD-3-Clause" + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/to-valid-identifier": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/to-valid-identifier/-/to-valid-identifier-1.0.0.tgz", + "integrity": "sha512-41wJyvKep3yT2tyPqX/4blcfybknGB4D+oETKLs7Q76UiPqRpUJK3hr1nxelyYO0PHKVzJwlu0aCeEAsGI6rpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sindresorhus/base62": "^1.0.0", + "reserved-identifiers": "^1.0.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "dev": true, + "license": "MIT", "dependencies": { - "psl": "^1.1.28", "punycode": "^2.1.1" }, "engines": { - "node": ">=0.8" + "node": ">=8" } }, "node_modules/ts-api-utils": { @@ -6089,22 +8013,6 @@ "strip-bom": "^3.0.0" } }, - "node_modules/tunnel-agent": { - "version": "0.6.0", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "safe-buffer": "^5.0.1" - }, - "engines": { - "node": "*" - } - }, - "node_modules/tweetnacl": { - "version": "0.14.5", - "dev": true, - "license": "Unlicense" - }, "node_modules/type-check": { "version": "0.4.0", "dev": true, @@ -6116,12 +8024,14 @@ "node": ">= 0.8.0" } }, - "node_modules/type-fest": { - "version": "0.8.1", + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true, - "license": "(MIT OR CC0-1.0)", + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=4" } }, "node_modules/typed-array-buffer": { @@ -6291,8 +8201,20 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4.0.0" + } + }, "node_modules/update-browserslist-db": { - "version": "1.1.3", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", "dev": true, "funding": [ { @@ -6328,35 +8250,118 @@ "punycode": "^2.1.0" } }, - "node_modules/uuid": { - "version": "3.4.0", + "node_modules/url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", "dev": true, "license": "MIT", - "bin": { - "uuid": "bin/uuid" + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" } }, - "node_modules/verror": { - "version": "1.10.0", + "node_modules/v8-to-istanbul": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz", + "integrity": "sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==", + "dev": true, + "license": "ISC", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0", + "source-map": "^0.7.3" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/v8-to-istanbul/node_modules/source-map": { + "version": "0.7.6", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.6.tgz", + "integrity": "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">= 12" + } + }, + "node_modules/w3c-hr-time": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", + "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", + "deprecated": "Use your platform's native performance.now() and performance.timeOrigin.", "dev": true, - "engines": [ - "node >=0.6.0" - ], "license": "MIT", "dependencies": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" + "browser-process-hrtime": "^1.0.0" } }, - "node_modules/verror/node_modules/extsprintf": { - "version": "1.4.1", + "node_modules/w3c-xmlserializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", + "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/webidl-conversions": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", + "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=10.4" + } + }, + "node_modules/whatwg-encoding": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", + "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", + "dev": true, + "license": "MIT", + "dependencies": { + "iconv-lite": "0.4.24" + } + }, + "node_modules/whatwg-mimetype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", + "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", "dev": true, - "engines": [ - "node >=0.6.0" - ], "license": "MIT" }, + "node_modules/whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "dev": true, + "license": "MIT", + "dependencies": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/which": { "version": "2.0.2", "dev": true, @@ -6432,11 +8437,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/which-module": { - "version": "2.0.1", - "dev": true, - "license": "ISC" - }, "node_modules/which-typed-array": { "version": "1.1.19", "dev": true, @@ -6465,19 +8465,6 @@ "node": ">=0.10.0" } }, - "node_modules/wrap-ansi": { - "version": "6.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/wrappy": { "version": "1.0.2", "dev": true, @@ -6494,48 +8481,46 @@ "typedarray-to-buffer": "^3.1.5" } }, - "node_modules/y18n": { - "version": "4.0.3", + "node_modules/ws": { + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "dev": true, - "license": "ISC" + "license": "MIT", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } }, - "node_modules/yallist": { - "version": "3.1.1", + "node_modules/xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", "dev": true, - "license": "ISC" + "license": "Apache-2.0" }, - "node_modules/yargs": { - "version": "15.4.1", + "node_modules/xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", "dev": true, - "license": "MIT", - "dependencies": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" - }, - "engines": { - "node": ">=8" - } + "license": "MIT" }, - "node_modules/yargs-parser": { - "version": "18.1.3", + "node_modules/yallist": { + "version": "3.1.1", "dev": true, - "license": "ISC", - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - }, - "engines": { - "node": ">=6" - } + "license": "ISC" }, "node_modules/yocto-queue": { "version": "0.1.0", diff --git a/package.json b/package.json index 99993c1..3386cbc 100644 --- a/package.json +++ b/package.json @@ -2,18 +2,30 @@ "name": "watchpack", "version": "2.4.4", "description": "", + "homepage": "https://github.com/webpack/watchpack", + "bugs": { + "url": "https://github.com/webpack/watchpack/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/webpack/watchpack.git" + }, + "license": "MIT", + "author": "Tobias Koppers @sokra", "main": "lib/index.js", + "types": "types/index.js", "directories": { "test": "test" }, - "types": "types/index.js", "files": [ - "lib/" + "lib/", + "types/" ], "scripts": { - "lint": "npm run lint:code && npm run lint:types && npm run lint:declarations && npm run fmt:check", + "lint": "npm run lint:code && npm run lint:types && npm run lint:types-test && npm run lint:declarations && npm run fmt:check", "lint:code": "eslint --cache .", "lint:types": "tsc", + "lint:types-test": "tsc -p tsconfig.types.test.json", "lint:declarations": "npm run fix:declarations && git diff --exit-code ./types", "fix": "npm run fix:code && npm run fix:declarations", "fix:code": "npm run lint:code -- --fix", @@ -22,51 +34,40 @@ "fmt:check": "npm run fmt:base -- --check", "fmt:base": "prettier --cache --ignore-unknown .", "pretest": "npm run lint", - "test": "mocha", - "test:only": "mocha", - "test:coverage": "nyc --reporter=lcov node_modules/mocha/bin/_mocha" - }, - "repository": { - "type": "git", - "url": "https://github.com/webpack/watchpack.git" + "test": "npm run test:coverage", + "test:base": "jest --runInBand", + "test:only": "npm run test:base", + "test:watch": "npm run test:base -- --watch", + "test:coverage": "npm run test:base -- --collectCoverageFrom=\"lib/**/*.js\" --coverage" }, - "author": "Tobias Koppers @sokra", - "license": "MIT", - "bugs": { - "url": "https://github.com/webpack/watchpack/issues" + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" }, - "homepage": "https://github.com/webpack/watchpack", "devDependencies": { "@eslint/js": "^9.28.0", - "@eslint/markdown": "^6.5.0", - "@stylistic/eslint-plugin": "^4.4.1", + "@eslint/markdown": "^7.5.1", + "@stylistic/eslint-plugin": "^5.6.1", "@types/glob-to-regexp": "^0.4.4", "@types/graceful-fs": "^4.1.9", "@types/jest": "^27.5.1", "@types/node": "^24.10.4", - "coveralls": "^3.0.0", - "eslint": "^9.28.0", - "eslint-config-prettier": "^10.1.5", - "eslint-config-webpack": "^4.0.2", - "eslint-plugin-import": "^2.31.0", - "eslint-plugin-jest": "^28.12.0", - "eslint-plugin-jsdoc": "^50.7.1", - "eslint-plugin-n": "^17.19.0", - "eslint-plugin-prettier": "^5.4.1", - "eslint-plugin-unicorn": "^59.0.1", - "globals": "^16.2.0", - "mocha": "^5.0.1", - "nyc": "^15.1.0", - "prettier": "^3.5.3", + "eslint": "^9.39.2", + "eslint-config-prettier": "^10.1.8", + "eslint-config-webpack": "^4.7.3", + "eslint-plugin-import": "^2.32.0", + "eslint-plugin-jest": "^29.5.0", + "eslint-plugin-jsdoc": "^61.5.0", + "eslint-plugin-n": "^17.23.1", + "eslint-plugin-prettier": "^5.5.4", + "eslint-plugin-unicorn": "^62.0.0", + "globals": "^16.5.0", + "jest": "^27.5.1", + "prettier": "^3.7.4", "rimraf": "^2.6.2", - "should": "^8.3.1", "typescript": "^5.9.3", "write-file-atomic": "^3.0.1" }, - "dependencies": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - }, "engines": { "node": ">=10.13.0" } diff --git a/test/Assumption.js b/test/Assumption.test.js similarity index 81% rename from test/Assumption.js rename to test/Assumption.test.js index 9ff79e2..3aa066a 100644 --- a/test/Assumption.js +++ b/test/Assumption.test.js @@ -1,27 +1,31 @@ -/* globals describe it beforeEach afterEach */ "use strict"; -require("should"); - -const path = require("path"); const fs = require("fs"); +const path = require("path"); +const { createHandleChangeEvent } = require("../lib/watchEventSource"); const TestHelper = require("./helpers/TestHelper"); +/** @typedef {import("fs").FSWatcher} FSWatcher */ + const fixtures = path.join(__dirname, "fixtures"); const testHelper = new TestHelper(fixtures); -const { createHandleChangeEvent } = require("../lib/watchEventSource"); - const IS_OSX = require("os").platform() === "darwin"; const IS_WIN = require("os").platform() === "win32"; const SUPPORTS_RECURSIVE_WATCHING = IS_OSX || IS_WIN; -describe("Assumption", function assumptionTest() { - this.timeout(10000); +// eslint-disable-next-line jest/no-confusing-set-timeout +jest.setTimeout(20000); + +describe("Assumption", () => { + /** @type {FSWatcher | null} */ let watcherToClose = null; - beforeEach(testHelper.before); + beforeEach((done) => { + testHelper.before(done); + }); + afterEach((done) => { if (watcherToClose) { watcherToClose.close(); @@ -30,8 +34,7 @@ describe("Assumption", function assumptionTest() { testHelper.after(done); }); - it("should have a file system with correct mtime behavior (stats)", function singleTest(done) { - this.timeout(20000); + it("should have a file system with correct mtime behavior (stats)", (done) => { let i = 60; const count = 60; let minDiffBefore = +Infinity; @@ -45,22 +48,21 @@ describe("Assumption", function assumptionTest() { * @returns {void} */ function afterMeasure() { - // eslint-disable-next-line no-console console.log( `mtime stats accuracy (before): [${minDiffBefore} ; ${ maxDiffBefore }] avg ${Math.round(sumDiffBefore / count)}`, ); - // eslint-disable-next-line no-console + console.log( `mtime stats accuracy (after): [${minDiffAfter} ; ${ maxDiffAfter }] avg ${Math.round(sumDiffAfter / count)}`, ); - minDiffBefore.should.be.aboveOrEqual(-2000); - maxDiffBefore.should.be.below(2000); - minDiffAfter.should.be.aboveOrEqual(-2000); - maxDiffAfter.should.be.below(2000); + expect(minDiffBefore).toBeGreaterThanOrEqual(-2000); + expect(maxDiffBefore).toBeLessThan(2000); + expect(minDiffAfter).toBeGreaterThanOrEqual(-2000); + expect(maxDiffAfter).toBeLessThan(2000); done(); } @@ -85,12 +87,13 @@ describe("Assumption", function assumptionTest() { }); }); - it("should have a file system with correct mtime behavior (fs.watch)", function singleTest(done) { - this.timeout(20000); + it("should have a file system with correct mtime behavior (fs.watch)", (done) => { testHelper.file("a"); let i = 60; const count = 60; + /** @type {number | undefined} */ let before; + /** @type {number | undefined} */ let after; let minDiffBefore = +Infinity; let maxDiffBefore = -Infinity; @@ -103,22 +106,21 @@ describe("Assumption", function assumptionTest() { * @returns {void} */ function afterMeasure() { - // eslint-disable-next-line no-console console.log( `mtime fs.watch accuracy (before): [${minDiffBefore} ; ${ maxDiffBefore }] avg ${Math.round(sumDiffBefore / count)}`, ); - // eslint-disable-next-line no-console + console.log( `mtime fs.watch accuracy (after): [${minDiffAfter} ; ${ maxDiffAfter }] avg ${Math.round(sumDiffAfter / count)}`, ); - minDiffBefore.should.be.aboveOrEqual(-2000); - maxDiffBefore.should.be.below(2000); - minDiffAfter.should.be.aboveOrEqual(-2000); - maxDiffAfter.should.be.below(2000); + expect(minDiffBefore).toBeGreaterThanOrEqual(-2000); + expect(maxDiffBefore).toBeLessThan(2000); + expect(minDiffAfter).toBeGreaterThanOrEqual(-2000); + expect(maxDiffAfter).toBeLessThan(2000); done(); } @@ -134,7 +136,9 @@ describe("Assumption", function assumptionTest() { const watcher = (watcherToClose = fs.watch(fixtures)); testHelper.tick(100, () => { watcher.on("change", (type, filename) => { - const stats = fs.statSync(path.join(fixtures, filename)); + const stats = fs.statSync( + path.join(fixtures, /** @type {string} */ (filename)), + ); if (before && after) { const diffBefore = +stats.mtime - before; if (diffBefore < minDiffBefore) minDiffBefore = diffBefore; @@ -157,12 +161,13 @@ describe("Assumption", function assumptionTest() { }); if (SUPPORTS_RECURSIVE_WATCHING) { - it("should have a file system with correct mtime behavior (fs.watch recursive)", function singleTest(done) { - this.timeout(20000); + it("should have a file system with correct mtime behavior (fs.watch recursive)", (done) => { testHelper.file("a"); let i = 60; const count = 60; + /** @type {number | undefined} */ let before; + /** @type {number | undefined} */ let after; let minDiffBefore = +Infinity; let maxDiffBefore = -Infinity; @@ -175,22 +180,21 @@ describe("Assumption", function assumptionTest() { * @returns {void} */ function afterMeasure() { - // eslint-disable-next-line no-console console.log( `mtime fs.watch({ recursive: true }) accuracy (before): [${ minDiffBefore } ; ${maxDiffBefore}] avg ${Math.round(sumDiffBefore / count)}`, ); - // eslint-disable-next-line no-console + console.log( `mtime fs.watch({ recursive: true }) accuracy (after): [${ minDiffAfter } ; ${maxDiffAfter}] avg ${Math.round(sumDiffAfter / count)}`, ); - minDiffBefore.should.be.aboveOrEqual(-2000); - maxDiffBefore.should.be.below(2000); - minDiffAfter.should.be.aboveOrEqual(-2000); - maxDiffAfter.should.be.below(2000); + expect(minDiffBefore).toBeGreaterThanOrEqual(-2000); + expect(maxDiffBefore).toBeLessThan(2000); + expect(minDiffAfter).toBeGreaterThanOrEqual(-2000); + expect(maxDiffAfter).toBeLessThan(2000); done(); } @@ -208,7 +212,9 @@ describe("Assumption", function assumptionTest() { })); testHelper.tick(100, () => { watcher.on("change", (type, filename) => { - const stats = fs.statSync(path.join(fixtures, filename)); + const stats = fs.statSync( + path.join(fixtures, /** @type {string} */ (filename)), + ); if (before && after) { const diffBefore = +stats.mtime - before; if (diffBefore < minDiffBefore) minDiffBefore = diffBefore; @@ -236,11 +242,14 @@ describe("Assumption", function assumptionTest() { testHelper.tick(500, () => { const watcher = (watcherToClose = fs.watch(fixtures)); watcher.on("change", (arg, arg2) => { + expect(true).toBe(false); done(new Error(`should not be emitted ${arg} ${arg2}`)); + // @ts-expect-error for tests done = function () {}; }); watcher.on("error", (err) => { done(err); + // @ts-expect-error for tests done = function () {}; }); testHelper.tick(500, () => { @@ -261,18 +270,24 @@ describe("Assumption", function assumptionTest() { const watcher = (watcherToClose = fs.watch(fixtures, { recursive: true, })); + /** @type {string[]} */ const events = []; watcher.once("change", () => { testHelper.tick(1000, () => { - events.should.matchAny(/watch-test-directory[/\\]watch-test-file/); + expect( + events.some((item) => + /watch-test-directory[/\\]watch-test-file/.test(item), + ), + ).toBe(true); done(); }); }); watcher.on("change", (type, filename) => { - events.push(filename); + events.push(/** @type {string} */ (filename)); }); watcher.on("error", (err) => { done(err); + // @ts-expect-error for tests done = function () {}; }); testHelper.tick(500, () => { @@ -301,18 +316,24 @@ describe("Assumption", function assumptionTest() { const watcher = (watcherToClose = fs.watch(fixtures, { recursive: true, })); + /** @type {string[]} */ const events = []; watcher.once("change", () => { testHelper.tick(1000, () => { - events.should.matchAny(/watch-test-directory[/\\]watch-test-file/); + expect( + events.some((item) => + /watch-test-directory[/\\]watch-test-file/.test(item), + ), + ).toBe(true); done(); }); }); watcher.on("change", (type, filename) => { - events.push(filename); + events.push(/** @type {string} */ (filename)); }); watcher.on("error", (err) => { done(err); + // @ts-expect-error for tests done = function () {}; }); testHelper.tick(500, () => { @@ -342,7 +363,13 @@ describe("Assumption", function assumptionTest() { ); watcher.on("change", handleChangeEvent); watcher.on("error", (err) => { - if (err && err.code === "EPERM") gotPermError = true; + if ( + err && + /** @type {NodeJS.ErrnoException} */ + (err).code === "EPERM" + ) { + gotPermError = true; + } }); testHelper.tick(500, () => { testHelper.remove("watch-test-dir"); @@ -350,6 +377,7 @@ describe("Assumption", function assumptionTest() { if (gotPermError || gotSelfRename) { done(); } else { + expect(true).toBe(false); done(new Error("Didn't receive a event about removed directory")); } }); @@ -365,11 +393,14 @@ describe("Assumption", function assumptionTest() { testHelper.tick(delay, () => { const watcher = (watcherToClose = fs.watch(fixtures)); watcher.on("change", (arg) => { + expect(true).toBe(false); done(new Error(`should not be emitted ${arg}`)); + // @ts-expect-error for tests done = function () {}; }); watcher.on("error", (err) => { done(err); + // @ts-expect-error for tests done = function () {}; }); testHelper.tick(500, () => { diff --git a/test/Casing.js b/test/Casing.test.js similarity index 78% rename from test/Casing.js rename to test/Casing.test.js index 693ee53..5367fb5 100644 --- a/test/Casing.js +++ b/test/Casing.test.js @@ -1,11 +1,8 @@ -/* globals describe it beforeEach afterEach */ "use strict"; -require("should"); - const path = require("path"); -const TestHelper = require("./helpers/TestHelper"); const Watchpack = require("../lib"); +const TestHelper = require("./helpers/TestHelper"); const fixtures = path.join(__dirname, "fixtures"); const testHelper = new TestHelper(fixtures); @@ -19,11 +16,18 @@ try { fsIsCaseInsensitive = false; } +// eslint-disable-next-line jest/no-confusing-set-timeout +jest.setTimeout(10000); + if (fsIsCaseInsensitive) { - describe("Casing", function casingTest() { - this.timeout(10000); - beforeEach(testHelper.before); - afterEach(testHelper.after); + describe("casing", () => { + beforeEach((done) => { + testHelper.before(done); + }); + + afterEach((done) => { + testHelper.after(done); + }); it("should watch a file with the wrong casing", (done) => { const w = new Watchpack({ @@ -31,12 +35,12 @@ if (fsIsCaseInsensitive) { }); let changeEvents = 0; w.on("change", (file) => { - file.should.be.eql(path.join(fixtures, "a")); + expect(file).toBe(path.join(fixtures, "a")); changeEvents++; }); w.on("aggregated", (changes) => { - [...changes].should.be.eql([path.join(fixtures, "a")]); - changeEvents.should.be.greaterThan(0); + expect([...changes]).toEqual([path.join(fixtures, "a")]); + expect(changeEvents).toBeGreaterThan(0); w.close(); done(); }); @@ -60,10 +64,11 @@ if (fsIsCaseInsensitive) { const files = w.getTimeInfoEntries(); w.close(); - changes.has(path.join(fixtures, dir)).should.be.eql(true); + expect(changes).toContain(path.join(fixtures, dir)); for (const file of files.keys()) { if (file.endsWith("hello.txt")) { + expect(true).toBe(false); return done(new Error("Renamed file was still in timeInfoEntries")); } } @@ -93,8 +98,8 @@ if (fsIsCaseInsensitive) { const files = w.getTimeInfoEntries(); w.close(); - changes.has(path.join(fixtures, testFileRename)).should.be.eql(true); - removals.has(path.join(fixtures, testFileRename)).should.be.eql(false); + expect(changes).toContain(path.join(fixtures, testFileRename)); + expect(removals).not.toContain(path.join(fixtures, testFileRename)); for (const file of files.keys()) { if (file.endsWith("hello.txt") && files.get(file)) { @@ -116,4 +121,10 @@ if (fsIsCaseInsensitive) { }); }); }); +} else { + describe("casing (no tests)", () => { + it("pass", () => { + expect(true).toBe(true); + }); + }); } diff --git a/test/DirectoryWatcher.js b/test/DirectoryWatcher.test.js similarity index 67% rename from test/DirectoryWatcher.js rename to test/DirectoryWatcher.test.js index e424bf3..62323f7 100644 --- a/test/DirectoryWatcher.js +++ b/test/DirectoryWatcher.test.js @@ -1,26 +1,27 @@ -/* globals describe it beforeEach afterEach */ "use strict"; -require("should"); - const path = require("path"); -const TestHelper = require("./helpers/TestHelper"); +const DirectoryWatcher = require("../lib/DirectoryWatcher"); const getWatcherManager = require("../lib/getWatcherManager"); -const OrgDirectoryWatcher = require("../lib/DirectoryWatcher"); +const TestHelper = require("./helpers/TestHelper"); +/** @typedef {import("../lib/DirectoryWatcher").DirectoryWatcherOptions} DirectoryWatcherOptions */ + +/** @type {DirectoryWatcherOptions} */ +const EMPTY_OPTIONS = {}; const fixtures = path.join(__dirname, "fixtures"); const testHelper = new TestHelper(fixtures); +/** @type {DirectoryWatcher[]} */ const openWatchers = []; /** - * @constructor * @param {string} directoryPath directory path - * @param {object} options options + * @param {DirectoryWatcherOptions} options options * @returns {DirectoryWatcher} directory watcher */ -function DirectoryWatcher(directoryPath, options) { - const directoryWatcher = new OrgDirectoryWatcher( +function getDirectoryWatcher(directoryPath, options) { + const directoryWatcher = new DirectoryWatcher( getWatcherManager(options), directoryPath, options, @@ -36,26 +37,33 @@ function DirectoryWatcher(directoryPath, options) { return directoryWatcher; } -describe("DirectoryWatcher", function directoryWatcherTest() { - this.timeout(10000); - beforeEach(testHelper.before); - afterEach(testHelper.after); - afterEach(() => { - for (const watchers of openWatchers) { - // eslint-disable-next-line no-console - console.log(`DirectoryWatcher (${watchers.path}) was not closed.`); - watchers.close(); - } +// eslint-disable-next-line jest/no-confusing-set-timeout +jest.setTimeout(10000); + +describe("DirectoryWatcher", () => { + beforeEach((done) => { + testHelper.before(done); + }); + + afterEach((done) => { + testHelper.after(() => { + for (const watchers of openWatchers) { + console.log(`DirectoryWatcher (${watchers.path}) was not closed.`); + watchers.close(); + } + + done(); + }); }); it("should detect a file creation", (done) => { - const directoryWatcher = new DirectoryWatcher(fixtures, {}); + const directoryWatcher = getDirectoryWatcher(fixtures, EMPTY_OPTIONS); const a = directoryWatcher.watch(path.join(fixtures, "a")); a.on("change", (mtime) => { - mtime.should.be.type("number"); - Object.keys(directoryWatcher.getTimes()) - .sort() - .should.be.eql([path.join(fixtures, "a")]); + expect(typeof mtime).toBe("number"); + expect(Object.keys(directoryWatcher.getTimes()).sort()).toEqual([ + path.join(fixtures, "a"), + ]); a.close(); done(); }); @@ -65,12 +73,12 @@ describe("DirectoryWatcher", function directoryWatcherTest() { }); it("should detect a file change", (done) => { - const directoryWatcher = new DirectoryWatcher(fixtures, {}); + const directoryWatcher = getDirectoryWatcher(fixtures, EMPTY_OPTIONS); testHelper.file("a"); testHelper.tick(1000, () => { const a = directoryWatcher.watch(path.join(fixtures, "a")); a.on("change", (mtime) => { - mtime.should.be.type("number"); + expect(typeof mtime).toBe("number"); a.close(); done(); }); @@ -83,9 +91,10 @@ describe("DirectoryWatcher", function directoryWatcherTest() { it("should not detect a file change in initial scan", (done) => { testHelper.file("a"); testHelper.tick(() => { - const directoryWatcher = new DirectoryWatcher(fixtures, {}); + const directoryWatcher = getDirectoryWatcher(fixtures, EMPTY_OPTIONS); const a = directoryWatcher.watch(path.join(fixtures, "a")); a.on("change", () => { + expect(true).toBe(false); throw new Error("should not be detected"); }); testHelper.tick(() => { @@ -100,9 +109,10 @@ describe("DirectoryWatcher", function directoryWatcherTest() { testHelper.tick(1000, () => { testHelper.file("a"); testHelper.tick(1000, () => { - const directoryWatcher = new DirectoryWatcher(fixtures, {}); - const a = directoryWatcher.watch(path.join(fixtures, "a"), start); + const directoryWatcher = getDirectoryWatcher(fixtures, EMPTY_OPTIONS); + const a = directoryWatcher.watch(path.join(fixtures, "a"), +start); a.on("change", () => { + expect(true).toBe(true); a.close(); done(); }); @@ -113,9 +123,10 @@ describe("DirectoryWatcher", function directoryWatcherTest() { it("should not detect a file change in initial scan without start date", (done) => { testHelper.file("a"); testHelper.tick(200, () => { - const directoryWatcher = new DirectoryWatcher(fixtures, {}); + const directoryWatcher = getDirectoryWatcher(fixtures, EMPTY_OPTIONS); const a = directoryWatcher.watch(path.join(fixtures, "a")); a.on("change", (mtime, type) => { + expect(true).toBe(false); throw new Error( `should not be detected (${type} mtime=${mtime} now=${Date.now()})`, ); @@ -127,21 +138,23 @@ describe("DirectoryWatcher", function directoryWatcherTest() { }); }); + /** @type {Record<"slow" | "fast", number>} */ const timings = { slow: 300, fast: 50, }; for (const name of Object.keys(timings)) { - const time = timings[name]; + const time = timings[/** @type {keyof typeof timings} */ (name)]; + it(`should detect multiple file changes (${name})`, (done) => { - const directoryWatcher = new DirectoryWatcher(fixtures, {}); + const directoryWatcher = getDirectoryWatcher(fixtures, EMPTY_OPTIONS); testHelper.file("a"); testHelper.tick(() => { const a = directoryWatcher.watch(path.join(fixtures, "a")); let count = 20; let wasChanged = false; a.on("change", (mtime) => { - mtime.should.be.type("number"); + expect(typeof mtime).toBe("number"); if (!wasChanged) return; wasChanged = false; if (count-- <= 0) { @@ -164,9 +177,10 @@ describe("DirectoryWatcher", function directoryWatcherTest() { it("should detect a file removal", (done) => { testHelper.file("a"); - const directoryWatcher = new DirectoryWatcher(fixtures, {}); + const directoryWatcher = getDirectoryWatcher(fixtures, EMPTY_OPTIONS); const a = directoryWatcher.watch(path.join(fixtures, "a")); a.on("remove", () => { + expect(true).toBe(true); a.close(); done(); }); @@ -176,7 +190,7 @@ describe("DirectoryWatcher", function directoryWatcherTest() { }); it("should report directory as initial missing on the second watch when directory doesn't exist", (done) => { - const wm = getWatcherManager({}); + const wm = getWatcherManager(EMPTY_OPTIONS); testHelper.dir("dir1"); wm.watchDirectory(path.join(fixtures, "dir1")); @@ -192,14 +206,14 @@ describe("DirectoryWatcher", function directoryWatcherTest() { for (const [, w] of wm.directoryWatchers) { w.close(); } - initialMissing.should.be.eql(true); + expect(initialMissing).toBe(true); done(); }); }); }); it("should not report directory as initial missing on the second watch when directory exists", (done) => { - const wm = getWatcherManager({}); + const wm = getWatcherManager(EMPTY_OPTIONS); testHelper.dir("dir1"); wm.watchDirectory(path.join(fixtures, "dir1")); @@ -215,7 +229,7 @@ describe("DirectoryWatcher", function directoryWatcherTest() { for (const [, w] of wm.directoryWatchers) { w.close(); } - initialMissing.should.be.eql(false); + expect(initialMissing).toBe(false); done(); }); }); @@ -223,19 +237,18 @@ describe("DirectoryWatcher", function directoryWatcherTest() { if (!Number(process.env.WATCHPACK_POLLING)) { it("should log errors emitted from watcher to stderr", (done) => { - let errorLogged = false; - const oldStderr = process.stderr.write; - process.stderr.write = function write(_a) { - errorLogged = true; - }; - const directoryWatcher = new DirectoryWatcher(fixtures, {}); + const errorSpy = jest.spyOn(console, "error"); + const directoryWatcher = getDirectoryWatcher(fixtures, EMPTY_OPTIONS); const a = directoryWatcher.watch(path.join(fixtures, "a")); + if (!directoryWatcher.watcher) { + done(new Error("No watcher")); + return; + } directoryWatcher.watcher.emit("error", "error_message"); testHelper.tick(() => { a.close(); - process.stderr.write = oldStderr; - errorLogged.should.be.true(); + expect(errorSpy).toHaveBeenCalled(); done(); }); }); diff --git a/test/LinkResolver.js b/test/LinkResolver.test.js similarity index 52% rename from test/LinkResolver.js rename to test/LinkResolver.test.js index 5b00c7f..af7494b 100644 --- a/test/LinkResolver.js +++ b/test/LinkResolver.test.js @@ -1,13 +1,11 @@ -/* globals describe it */ "use strict"; -const should = require("should"); -const LinkResolver = require("../lib/LinkResolver"); +const LinkResolverTest = require("../lib/LinkResolver"); describe("LinkResolver", () => { it("should not throw when a path resolves with ENOENT", () => { - const resolver = new LinkResolver(); + const resolver = new LinkResolverTest(); const result = resolver.resolve("/path/to/nonexistent/file/or/folder"); - should.exist(result); + expect(result).toEqual(["/path/to/nonexistent/file/or/folder"]); }); }); diff --git a/test/ManyWatchers.js b/test/ManyWatchers.test.js similarity index 75% rename from test/ManyWatchers.js rename to test/ManyWatchers.test.js index ce70c44..0e91ef6 100644 --- a/test/ManyWatchers.js +++ b/test/ManyWatchers.test.js @@ -1,27 +1,30 @@ -/* globals describe it beforeEach afterEach */ "use strict"; -require("should"); - const path = require("path"); -const TestHelper = require("./helpers/TestHelper"); const Watchpack = require("../lib"); const watchEventSource = require("../lib/watchEventSource"); -const should = require("should"); +const TestHelper = require("./helpers/TestHelper"); const fixtures = path.join(__dirname, "fixtures"); const testHelper = new TestHelper(fixtures); -describe("ManyWatchers", function manyWatchersTests() { - this.timeout(600000); - beforeEach(testHelper.before); - afterEach(testHelper.after); +// eslint-disable-next-line jest/no-confusing-set-timeout +jest.setTimeout(600000); + +describe("ManyWatchers", () => { + beforeEach((done) => { + testHelper.before(done); + }); + + afterEach((done) => { + testHelper.after(done); + }); it("should watch more than 4096 directories", (done) => { - // eslint-disable-next-line no-console console.time("creating files"); // windows is very slow in creating so many files // this can take about 1 minute + /** @type {string[]} */ const files = []; for (let i = 1; i < 5000; i++) { let highBit = 1; @@ -46,20 +49,19 @@ describe("ManyWatchers", function manyWatchersTests() { } testHelper.file("file"); files.push(path.join(fixtures, "file")); - // eslint-disable-next-line no-console + console.timeEnd("creating files"); testHelper.tick(10000, () => { const w = new Watchpack({ aggregateTimeout: 1000, }); w.on("aggregated", (changes) => { - // eslint-disable-next-line no-console console.timeEnd("detecting change event"); - [...changes].should.be.eql([path.join(fixtures, "4096/900/file")]); + expect([...changes]).toEqual([path.join(fixtures, "4096/900/file")]); w.close(); done(); }); - // eslint-disable-next-line no-console + console.time("creating/closing watchers"); // MacOS is very slow in creating and destroying watchers // This can take about 2 minutes @@ -69,18 +71,17 @@ describe("ManyWatchers", function manyWatchersTests() { } } w.watch({ files }); - // eslint-disable-next-line no-console + console.timeEnd("creating/closing watchers"); - // eslint-disable-next-line no-console + console.time("calling watch with the same files"); for (let i = 0; i < 2000; i++) { w.watch({ files }); } - // eslint-disable-next-line no-console + console.timeEnd("calling watch with the same files"); testHelper.tick(10000, () => { - // eslint-disable-next-line no-console console.time("detecting change event"); testHelper.file("4096/900/file"); }); @@ -88,8 +89,7 @@ describe("ManyWatchers", function manyWatchersTests() { }); it("should set the watcher limit based on the platform", () => { - should.equal( - watchEventSource.watcherLimit, + expect(watchEventSource.watcherLimit).toBe( require("os").platform() === "darwin" ? 20 : 10000, ); }); diff --git a/test/Watchpack.js b/test/Watchpack.test.js similarity index 74% rename from test/Watchpack.js rename to test/Watchpack.test.js index cec8024..018318e 100644 --- a/test/Watchpack.js +++ b/test/Watchpack.test.js @@ -1,32 +1,39 @@ -/* globals describe it beforeEach afterEach */ "use strict"; -require("should"); - const path = require("path"); +const WatchpackTest = require("../lib"); const TestHelper = require("./helpers/TestHelper"); -const Watchpack = require("../lib"); const fixtures = path.join(__dirname, "fixtures"); const testHelper = new TestHelper(fixtures); -describe("Watchpack", function watchpackTest() { - this.timeout(10000); - beforeEach(testHelper.before); - afterEach(testHelper.after); +/** @typedef {import("../lib/index").Entry} Entry */ +/** @typedef {import("../lib/index").Changes} Changes */ + +// eslint-disable-next-line jest/no-confusing-set-timeout +jest.setTimeout(10000); + +describe("Watchpack", () => { + beforeEach((done) => { + testHelper.before(done); + }); + + afterEach((done) => { + testHelper.after(done); + }); it("should watch a single file", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); let changeEvents = 0; w.on("change", (file) => { - file.should.be.eql(path.join(fixtures, "a")); + expect(file).toBe(path.join(fixtures, "a")); changeEvents++; }); w.on("aggregated", (changes) => { - [...changes].should.be.eql([path.join(fixtures, "a")]); - changeEvents.should.be.greaterThan(0); + expect([...changes]).toEqual([path.join(fixtures, "a")]); + expect(changeEvents).toBeGreaterThan(0); w.close(); done(); }); @@ -37,7 +44,7 @@ describe("Watchpack", function watchpackTest() { }); it("should aggregate changes while paused", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); testHelper.file("a"); @@ -58,8 +65,8 @@ describe("Watchpack", function watchpackTest() { testHelper.remove("a"); testHelper.tick(() => { const { changes, removals } = w.getAggregated(); - [...changes].should.be.eql([path.join(fixtures, "b")]); - [...removals].should.be.eql([path.join(fixtures, "a")]); + expect([...changes]).toEqual([path.join(fixtures, "b")]); + expect([...removals]).toEqual([path.join(fixtures, "a")]); w.close(); done(); }); @@ -68,7 +75,7 @@ describe("Watchpack", function watchpackTest() { }); it("should not watch a single ignored file (glob)", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 300, ignored: "**/a", }); @@ -84,9 +91,9 @@ describe("Watchpack", function watchpackTest() { testHelper.tick(() => { testHelper.file("a"); testHelper.tick(1000, () => { - changeEvents.should.be.eql(0); - aggregatedEvents.should.be.eql(0); - testHelper.getNumberOfWatchers().should.be.eql(0); + expect(changeEvents).toBe(0); + expect(aggregatedEvents).toBe(0); + expect(testHelper.getNumberOfWatchers()).toBe(0); w.close(); done(); }); @@ -94,7 +101,7 @@ describe("Watchpack", function watchpackTest() { }); it("should not watch a single ignored file (regexp)", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 300, ignored: /\/a$/, }); @@ -110,9 +117,9 @@ describe("Watchpack", function watchpackTest() { testHelper.tick(() => { testHelper.file("a"); testHelper.tick(1000, () => { - changeEvents.should.be.eql(0); - aggregatedEvents.should.be.eql(0); - testHelper.getNumberOfWatchers().should.be.eql(0); + expect(changeEvents).toBe(0); + expect(aggregatedEvents).toBe(0); + expect(testHelper.getNumberOfWatchers()).toBe(0); w.close(); done(); }); @@ -120,7 +127,7 @@ describe("Watchpack", function watchpackTest() { }); it("should not watch a single ignored file (function)", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 300, ignored: (entry) => entry.includes("a"), }); @@ -136,9 +143,9 @@ describe("Watchpack", function watchpackTest() { testHelper.tick(() => { testHelper.file("a"); testHelper.tick(1000, () => { - changeEvents.should.be.eql(0); - aggregatedEvents.should.be.eql(0); - testHelper.getNumberOfWatchers().should.be.eql(0); + expect(changeEvents).toBe(0); + expect(aggregatedEvents).toBe(0); + expect(testHelper.getNumberOfWatchers()).toBe(0); w.close(); done(); }); @@ -146,28 +153,31 @@ describe("Watchpack", function watchpackTest() { }); it("should watch multiple files", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); + /** @type {string[]} */ const changeEvents = []; w.on("change", (file) => { if (changeEvents[changeEvents.length - 1] === file) return; changeEvents.push(file); }); w.on("aggregated", (changes) => { - [...changes] - .sort() - .should.be.eql([path.join(fixtures, "a"), path.join(fixtures, "b")]); - changeEvents.should.be.eql([ + expect([...changes].sort()).toEqual([ path.join(fixtures, "a"), path.join(fixtures, "b"), + ]); + expect(changeEvents).toEqual([ path.join(fixtures, "a"), path.join(fixtures, "b"), path.join(fixtures, "a"), + path.join(fixtures, "b"), + path.join(fixtures, "a"), + ]); + expect(Object.keys(w.getTimes()).sort()).toEqual([ + path.join(fixtures, "a"), + path.join(fixtures, "b"), ]); - Object.keys(w.getTimes()) - .sort() - .should.be.eql([path.join(fixtures, "a"), path.join(fixtures, "b")]); w.close(); done(); }); @@ -190,17 +200,18 @@ describe("Watchpack", function watchpackTest() { }); it("should watch a directory", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); + /** @type {string[]} */ const changeEvents = []; w.on("change", (file) => { if (changeEvents[changeEvents.length - 1] === file) return; changeEvents.push(file); }); w.on("aggregated", (changes) => { - [...changes].should.be.eql([path.join(fixtures, "dir")]); - changeEvents.should.be.eql([path.join(fixtures, "dir", "a")]); + expect([...changes]).toEqual([path.join(fixtures, "dir")]); + expect(changeEvents).toEqual([path.join(fixtures, "dir", "a")]); w.close(); done(); }); @@ -214,7 +225,7 @@ describe("Watchpack", function watchpackTest() { }); it("should not watch an ignored directory", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 300, ignored: ["**/dir"], }); @@ -232,9 +243,9 @@ describe("Watchpack", function watchpackTest() { testHelper.tick(200, () => { testHelper.file(path.join("dir", "a")); testHelper.tick(1000, () => { - changeEvents.should.be.eql(0); - aggregatedEvents.should.be.eql(0); - testHelper.getNumberOfWatchers().should.be.eql(0); + expect(changeEvents).toBe(0); + expect(aggregatedEvents).toBe(0); + expect(testHelper.getNumberOfWatchers()).toBe(0); w.close(); done(); }); @@ -243,7 +254,7 @@ describe("Watchpack", function watchpackTest() { }); it("should not watch an ignored file in a directory", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 300, ignored: ["**/a"], }); @@ -261,8 +272,8 @@ describe("Watchpack", function watchpackTest() { testHelper.tick(200, () => { testHelper.file(path.join("dir", "a")); testHelper.tick(1000, () => { - changeEvents.should.be.eql(0); - aggregatedEvents.should.be.eql(0); + expect(changeEvents).toBe(0); + expect(aggregatedEvents).toBe(0); w.close(); done(); }); @@ -271,18 +282,18 @@ describe("Watchpack", function watchpackTest() { }); it("should watch a file when ignore is empty array", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, ignored: [], }); let changeEvents = 0; w.on("change", (file) => { - file.should.be.eql(path.join(fixtures, "a")); + expect(file).toBe(path.join(fixtures, "a")); changeEvents++; }); w.on("aggregated", (changes) => { - [...changes].should.be.eql([path.join(fixtures, "a")]); - changeEvents.should.be.greaterThan(0); + expect([...changes]).toEqual([path.join(fixtures, "a")]); + expect(changeEvents).toBeGreaterThan(0); w.close(); done(); }); @@ -293,18 +304,18 @@ describe("Watchpack", function watchpackTest() { }); it("should watch a file when ignore is an array with empty string", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, ignored: ["", ""], }); let changeEvents = 0; w.on("change", (file) => { - file.should.be.eql(path.join(fixtures, "a")); + expect(file).toBe(path.join(fixtures, "a")); changeEvents++; }); w.on("aggregated", (changes) => { - [...changes].should.be.eql([path.join(fixtures, "a")]); - changeEvents.should.be.greaterThan(0); + expect([...changes]).toEqual([path.join(fixtures, "a")]); + expect(changeEvents).toBeGreaterThan(0); w.close(); done(); }); @@ -315,18 +326,18 @@ describe("Watchpack", function watchpackTest() { }); it("should watch a file when ignore is empty string", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, ignored: "", }); let changeEvents = 0; w.on("change", (file) => { - file.should.be.eql(path.join(fixtures, "a")); + expect(file).toBe(path.join(fixtures, "a")); changeEvents++; }); w.on("aggregated", (changes) => { - [...changes].should.be.eql([path.join(fixtures, "a")]); - changeEvents.should.be.greaterThan(0); + expect([...changes]).toEqual([path.join(fixtures, "a")]); + expect(changeEvents).toBeGreaterThan(0); w.close(); done(); }); @@ -337,18 +348,19 @@ describe("Watchpack", function watchpackTest() { }); it("should watch a file then a directory", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); + /** @type {string[]} */ const changeEvents = []; w.on("change", (file) => { if (changeEvents[changeEvents.length - 1] === file) return; changeEvents.push(file); }); w.on("aggregated", (changes, removals) => { - [...changes].should.be.eql([path.join(fixtures, "dir")]); - [...removals].should.be.eql([]); - changeEvents.should.be.eql([path.join(fixtures, "dir", "a")]); + expect([...changes]).toEqual([path.join(fixtures, "dir")]); + expect([...removals]).toEqual([]); + expect(changeEvents).toEqual([path.join(fixtures, "dir", "a")]); w.close(); done(); }); @@ -367,17 +379,18 @@ describe("Watchpack", function watchpackTest() { }); it("should watch a directory (delete file)", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); + /** @type {string[]} */ const changeEvents = []; w.on("change", (file) => { if (changeEvents[changeEvents.length - 1] === file) return; changeEvents.push(file); }); w.on("aggregated", (changes) => { - [...changes].should.be.eql([path.join(fixtures, "dir")]); - changeEvents.should.be.eql([path.join(fixtures, "dir", "a")]); + expect([...changes]).toEqual([path.join(fixtures, "dir")]); + expect(changeEvents).toEqual([path.join(fixtures, "dir", "a")]); w.close(); done(); }); @@ -392,17 +405,18 @@ describe("Watchpack", function watchpackTest() { }); it("should watch a directory (delete and recreate file)", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); + /** @type {string[]} */ const changeEvents = []; w.on("change", (file) => { if (changeEvents[changeEvents.length - 1] === file) return; changeEvents.push(file); }); w.on("aggregated", (changes) => { - [...changes].should.be.eql([path.join(fixtures, "dir")]); - changeEvents.should.be.eql([ + expect([...changes]).toEqual([path.join(fixtures, "dir")]); + expect(changeEvents).toEqual([ path.join(fixtures, "dir", "a"), path.join(fixtures, "dir", "b"), path.join(fixtures, "dir", "a"), @@ -427,17 +441,18 @@ describe("Watchpack", function watchpackTest() { }); it("should watch a missing directory", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); + /** @type {string[]} */ const changeEvents = []; w.on("change", (file) => { if (changeEvents[changeEvents.length - 1] === file) return; changeEvents.push(file); }); w.on("aggregated", (changes) => { - [...changes].should.be.eql([path.join(fixtures, "dir", "sub")]); - changeEvents.should.be.eql([path.join(fixtures, "dir", "sub")]); + expect([...changes]).toEqual([path.join(fixtures, "dir", "sub")]); + expect(changeEvents).toEqual([path.join(fixtures, "dir", "sub")]); w.close(); done(); }); @@ -451,17 +466,18 @@ describe("Watchpack", function watchpackTest() { }); it("should watch a directory (add directory)", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); + /** @type {string[]} */ const changeEvents = []; w.on("change", (file) => { if (changeEvents[changeEvents.length - 1] === file) return; changeEvents.push(file); }); w.on("aggregated", (changes) => { - [...changes].should.be.eql([path.join(fixtures, "dir")]); - changeEvents.should.be.eql([path.join(fixtures, "dir", "sub")]); + expect([...changes]).toEqual([path.join(fixtures, "dir")]); + expect(changeEvents).toEqual([path.join(fixtures, "dir", "sub")]); w.close(); done(); }); @@ -475,16 +491,17 @@ describe("Watchpack", function watchpackTest() { }); it("should watch a directory (delete directory)", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); + /** @type {string[]} */ const changeEvents = []; w.on("change", (file) => { if (changeEvents[changeEvents.length - 1] === file) return; changeEvents.push(file); }); w.on("aggregated", (changes) => { - [...changes].should.be.eql([path.join(fixtures, "dir")]); + expect([...changes]).toEqual([path.join(fixtures, "dir")]); w.close(); done(); }); @@ -500,17 +517,18 @@ describe("Watchpack", function watchpackTest() { }); it("should watch a directory (delete, restore and change directory)", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); + /** @type {string[]} */ const changeEvents = []; w.on("change", (file) => { if (changeEvents[changeEvents.length - 1] === file) return; changeEvents.push(file); }); w.on("aggregated", (changes, removals) => { - [...changes].should.be.eql([path.join(fixtures, "dir", "sub", "a")]); - [...removals].should.be.eql([]); + expect([...changes]).toEqual([path.join(fixtures, "dir", "sub", "a")]); + expect([...removals]).toEqual([]); w.close(); done(); }); @@ -530,17 +548,18 @@ describe("Watchpack", function watchpackTest() { }); it("should watch a directory (delete directory2)", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); + /** @type {string[]} */ const changeEvents = []; w.on("change", (file) => { if (changeEvents[changeEvents.length - 1] === file) return; changeEvents.push(file); }); w.on("aggregated", (changes) => { - [...changes].should.be.eql([path.join(fixtures, "dir")]); - changeEvents.should.be.eql([path.join(fixtures, "dir", "sub")]); + expect([...changes]).toEqual([path.join(fixtures, "dir")]); + expect(changeEvents).toEqual([path.join(fixtures, "dir", "sub")]); w.close(); done(); }); @@ -555,17 +574,18 @@ describe("Watchpack", function watchpackTest() { }); it("should watch already watched directory", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); + /** @type {string[]} */ const changeEvents = []; w.on("change", (file) => { if (changeEvents[changeEvents.length - 1] === file) return; changeEvents.push(file); }); w.on("aggregated", (changes) => { - [...changes].should.be.eql([path.join(fixtures, "dir")]); - changeEvents.should.be.eql([path.join(fixtures, "dir", "a")]); + expect([...changes]).toEqual([path.join(fixtures, "dir")]); + expect(changeEvents).toEqual([path.join(fixtures, "dir", "a")]); w.close(); done(); }); @@ -583,25 +603,30 @@ describe("Watchpack", function watchpackTest() { }); it("should watch file in a sub directory", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); + /** @type {string[]} */ const changeEvents = []; w.on("change", (file) => { if (changeEvents[changeEvents.length - 1] === file) return; changeEvents.push(file); }); w.on("aggregated", (changes) => { - [...changes].should.be.eql([path.join(fixtures, "dir")]); - changeEvents.should.be.eql([path.join(fixtures, "dir", "sub", "a")]); + expect([...changes]).toEqual([path.join(fixtures, "dir")]); + expect(changeEvents).toEqual([path.join(fixtures, "dir", "sub", "a")]); const times = w.getTimeInfoEntries(); - const dir = times.get(path.join(fixtures, "dir")); - const sub = times.get(path.join(fixtures, "dir", "sub")); - const a = times.get(path.join(fixtures, "dir", "sub", "a")); - dir.should.be.type("object"); - dir.should.have.property("safeTime"); - sub.safeTime.should.be.aboveOrEqual(a.safeTime); - dir.safeTime.should.be.aboveOrEqual(sub.safeTime); + const dir = /** @type {Entry} */ (times.get(path.join(fixtures, "dir"))); + const sub = + /** @type {Entry} */ + (times.get(path.join(fixtures, "dir", "sub"))); + const a = + /** @type {Entry} */ + (times.get(path.join(fixtures, "dir", "sub", "a"))); + expect(typeof dir).toBe("object"); + expect(Object.prototype.hasOwnProperty.call(dir, "safeTime")).toBe(true); + expect(sub.safeTime).toBeGreaterThanOrEqual(a.safeTime); + expect(dir.safeTime).toBeGreaterThanOrEqual(sub.safeTime); w.close(); done(); }); @@ -616,17 +641,18 @@ describe("Watchpack", function watchpackTest() { }); it("should watch file in a sub directory (passed in maps)", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); + /** @type {string[]} */ const changeEvents = []; w.on("change", (file) => { if (changeEvents[changeEvents.length - 1] === file) return; changeEvents.push(file); }); w.on("aggregated", (changes) => { - [...changes].should.be.eql([path.join(fixtures, "dir")]); - changeEvents.should.be.eql([path.join(fixtures, "dir", "sub", "a")]); + expect([...changes]).toEqual([path.join(fixtures, "dir")]); + expect(changeEvents).toEqual([path.join(fixtures, "dir", "sub", "a")]); const files = new Map(); const directories = new Map(); w.collectTimeInfoEntries(files, directories); @@ -636,20 +662,24 @@ describe("Watchpack", function watchpackTest() { const subAsFile = files.get(path.join(fixtures, "dir", "sub")); const a = files.get(path.join(fixtures, "dir", "sub", "a")); const file = files.get(path.join(fixtures, "file")); - dir.should.be.type("object"); - dir.should.have.property("safeTime"); - dirAsFile.should.be.type("object"); - dirAsFile.should.not.have.property("safeTime"); - sub.should.be.type("object"); - sub.should.have.property("safeTime"); - subAsFile.should.be.type("object"); - subAsFile.should.not.have.property("safeTime"); - a.should.be.type("object"); - a.should.have.property("safeTime"); - a.should.have.property("timestamp"); - (file === null).should.be.eql(true); - sub.safeTime.should.be.aboveOrEqual(a.safeTime); - dir.safeTime.should.be.aboveOrEqual(sub.safeTime); + expect(typeof dir).toBe("object"); + expect(Object.prototype.hasOwnProperty.call(dir, "safeTime")).toBe(true); + expect(typeof dirAsFile).toBe("object"); + expect(Object.prototype.hasOwnProperty.call(dirAsFile, "safeTime")).toBe( + false, + ); + expect(typeof sub).toBe("object"); + expect(Object.prototype.hasOwnProperty.call(sub, "safeTime")).toBe(true); + expect(typeof subAsFile).toBe("object"); + expect(Object.prototype.hasOwnProperty.call(subAsFile, "safeTime")).toBe( + false, + ); + expect(typeof a).toBe("object"); + expect(Object.prototype.hasOwnProperty.call(a, "safeTime")).toBe(true); + expect(Object.prototype.hasOwnProperty.call(a, "timestamp")).toBe(true); + expect(file).toBeNull(); + expect(sub.safeTime).toBeGreaterThanOrEqual(a.safeTime); + expect(dir.safeTime).toBeGreaterThanOrEqual(sub.safeTime); w.close(); done(); }); @@ -665,7 +695,7 @@ describe("Watchpack", function watchpackTest() { }); it("should watch directory as file and directory", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); w.on("aggregated", (_changes) => { @@ -674,24 +704,28 @@ describe("Watchpack", function watchpackTest() { w.collectTimeInfoEntries(files, directories); // fixtures should exist const fixturesAsFile = files.get(path.join(fixtures)); - fixturesAsFile.should.be.type("object"); + expect(typeof fixturesAsFile).toBe("object"); // dir should exist const dirAsFile = files.get(path.join(fixtures, "dir")); - dirAsFile.should.be.type("object"); - dirAsFile.should.not.have.property("safeTime"); + expect(typeof dirAsFile).toBe("object"); + expect(Object.prototype.hasOwnProperty.call(dirAsFile, "safeTime")).toBe( + false, + ); // a should have timestamp const a = files.get(path.join(fixtures, "dir", "sub", "a")); - a.should.be.type("object"); - a.should.have.property("safeTime"); - a.should.have.property("timestamp"); + expect(typeof a).toBe("object"); + expect(Object.prototype.hasOwnProperty.call(a, "safeTime")).toBe(true); + expect(Object.prototype.hasOwnProperty.call(a, "timestamp")).toBe(true); // sub should have timestamp const sub = directories.get(path.join(fixtures, "dir", "sub")); - sub.should.be.type("object"); - sub.should.have.property("safeTime"); + expect(typeof sub).toBe("object"); + expect(Object.prototype.hasOwnProperty.call(sub, "safeTime")).toBe(true); // sub should exist as file const subAsFile = files.get(path.join(fixtures, "dir", "sub")); - subAsFile.should.be.type("object"); - subAsFile.should.not.have.property("safeTime"); + expect(typeof subAsFile).toBe("object"); + expect(Object.prototype.hasOwnProperty.call(subAsFile, "safeTime")).toBe( + false, + ); w.close(); done(); }); @@ -714,16 +748,14 @@ describe("Watchpack", function watchpackTest() { }); it("should watch 2 files in a not-existing directory", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); w.on("aggregated", (changes) => { - [...changes] - .sort() - .should.be.eql([ - path.join(fixtures, "dir", "sub", "a"), - path.join(fixtures, "dir", "sub", "b"), - ]); + expect([...changes].sort()).toEqual([ + path.join(fixtures, "dir", "sub", "a"), + path.join(fixtures, "dir", "sub", "b"), + ]); w.close(); done(); }); @@ -743,27 +775,26 @@ describe("Watchpack", function watchpackTest() { }); it("should watch file in a sub sub directory", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); + /** @type {string[]} */ const changeEvents = []; w.on("change", (file) => { if (changeEvents[changeEvents.length - 1] === file) return; changeEvents.push(file); }); w.on("aggregated", (changes) => { - [...changes].should.be.eql([path.join(fixtures, "dir")]); - changeEvents.should.be.eql([ + expect([...changes]).toEqual([path.join(fixtures, "dir")]); + expect(changeEvents).toEqual([ + path.join(fixtures, "dir", "sub", "sub", "a"), + ]); + expect(Object.keys(w.getTimes()).sort()).toEqual([ + path.join(fixtures, "dir"), + path.join(fixtures, "dir", "sub"), + path.join(fixtures, "dir", "sub", "sub"), path.join(fixtures, "dir", "sub", "sub", "a"), ]); - Object.keys(w.getTimes()) - .sort() - .should.be.eql([ - path.join(fixtures, "dir"), - path.join(fixtures, "dir", "sub"), - path.join(fixtures, "dir", "sub", "sub"), - path.join(fixtures, "dir", "sub", "sub", "a"), - ]); w.close(); done(); }); @@ -779,23 +810,28 @@ describe("Watchpack", function watchpackTest() { }); it("should watch file in a directory that contains special glob characters", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); + /** @type {string[]} */ const changeEvents = []; w.on("change", (file) => { if (changeEvents[changeEvents.length - 1] === file) return; changeEvents.push(file); }); w.on("aggregated", (changes) => { - [...changes].should.be.eql([path.join(fixtures, "dir")]); - changeEvents.should.be.eql([path.join(fixtures, "dir", "sub()", "a")]); + expect([...changes]).toEqual([path.join(fixtures, "dir")]); + expect(changeEvents).toEqual([path.join(fixtures, "dir", "sub()", "a")]); const times = w.getTimeInfoEntries(); - const dir = times.get(path.join(fixtures, "dir")); - const sub = times.get(path.join(fixtures, "dir", "sub()")); - const a = times.get(path.join(fixtures, "dir", "sub()", "a")); - sub.safeTime.should.be.aboveOrEqual(a.safeTime); - dir.safeTime.should.be.aboveOrEqual(sub.safeTime); + const dir = /** @type {Entry} */ (times.get(path.join(fixtures, "dir"))); + const sub = + /** @type {Entry} */ + (times.get(path.join(fixtures, "dir", "sub()"))); + const a = + /** @type {Entry} */ + (times.get(path.join(fixtures, "dir", "sub()", "a"))); + expect(sub.safeTime).toBeGreaterThanOrEqual(a.safeTime); + expect(dir.safeTime).toBeGreaterThanOrEqual(sub.safeTime); w.close(); done(); }); @@ -813,8 +849,8 @@ describe("Watchpack", function watchpackTest() { const options = { aggregateTimeout: 1000, }; - const w = new Watchpack(options); - const w2 = new Watchpack(options); + const w = new WatchpackTest(options); + const w2 = new WatchpackTest(options); w.on("change", () => { throw new Error("should not report change event"); }); @@ -830,6 +866,7 @@ describe("Watchpack", function watchpackTest() { testHelper.tick(400, () => { w.watch([path.join(fixtures, "a")], [], Date.now()); testHelper.tick(1000, () => { + expect(true).toBe(true); w2.close(); w.close(); done(); @@ -840,10 +877,10 @@ describe("Watchpack", function watchpackTest() { }); it("should create different watchers for different options", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); - const w2 = new Watchpack({ + const w2 = new WatchpackTest({ aggregateTimeout: 1000, }); testHelper.file("a"); @@ -855,6 +892,7 @@ describe("Watchpack", function watchpackTest() { testHelper.tick(400, () => { testHelper.file("a"); testHelper.tick(1000, () => { + expect(true).toBe(true); w2.close(); w.close(); done(); @@ -865,17 +903,17 @@ describe("Watchpack", function watchpackTest() { }); it("should detect a past change to a file (timestamp)", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); let changeEvents = 0; w.on("change", (file) => { - file.should.be.eql(path.join(fixtures, "a")); + expect(file).toBe(path.join(fixtures, "a")); changeEvents++; }); w.on("aggregated", (changes) => { - [...changes].should.be.eql([path.join(fixtures, "a")]); - changeEvents.should.be.greaterThan(0); + expect([...changes]).toEqual([path.join(fixtures, "a")]); + expect(changeEvents).toBeGreaterThan(0); w.close(); done(); }); @@ -889,8 +927,8 @@ describe("Watchpack", function watchpackTest() { }); it("should not detect a past change to a file (watched)", (done) => { - const w2 = new Watchpack(); - const w = new Watchpack(); + const w2 = new WatchpackTest(); + const w = new WatchpackTest(); w.on("change", () => { throw new Error("Should not be detected"); }); @@ -905,6 +943,7 @@ describe("Watchpack", function watchpackTest() { testHelper.tick(400, () => { w.watch([path.join(fixtures, "a")], [], startTime); testHelper.tick(1000, () => { + expect(true).toBe(true); w.close(); w2.close(); done(); @@ -916,16 +955,16 @@ describe("Watchpack", function watchpackTest() { }); it("should detect a past change to a file (watched)", (done) => { - const w2 = new Watchpack(); - const w = new Watchpack(); + const w2 = new WatchpackTest(); + const w = new WatchpackTest(); let changeEvents = 0; w.on("change", (file) => { - file.should.be.eql(path.join(fixtures, "a")); + expect(file).toBe(path.join(fixtures, "a")); changeEvents++; }); w.on("aggregated", (changes) => { - [...changes].should.be.eql([path.join(fixtures, "a")]); - changeEvents.should.be.eql(1); + expect([...changes]).toEqual([path.join(fixtures, "a")]); + expect(changeEvents).toBe(1); w.close(); w2.close(); done(); @@ -947,17 +986,17 @@ describe("Watchpack", function watchpackTest() { it("should watch a single file removal", (done) => { testHelper.file("a"); - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); let removeEvents = 0; w.on("remove", (file) => { - file.should.be.eql(path.join(fixtures, "a")); + expect(file).toBe(path.join(fixtures, "a")); removeEvents++; }); w.on("aggregated", (changes, removals) => { - [...removals].should.be.eql([path.join(fixtures, "a")]); - removeEvents.should.be.eql(1); + expect([...removals]).toEqual([path.join(fixtures, "a")]); + expect(removeEvents).toBe(1); w.close(); done(); }); @@ -973,30 +1012,34 @@ describe("Watchpack", function watchpackTest() { let step = 0; testHelper.file("a"); testHelper.file("b"); - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 3000, }); + /** @type {string[]} */ const removeEvents = []; w.on("remove", (file) => { if (removeEvents[removeEvents.length - 1] === file) return; removeEvents.push(file); }); w.on("aggregated", (changes, removals) => { - step.should.be.eql(6); - [...removals] - .sort() - .should.be.eql([path.join(fixtures, "a"), path.join(fixtures, "b")]); + expect(step).toBe(6); + expect([...removals].sort()).toEqual([ + path.join(fixtures, "a"), + path.join(fixtures, "b"), + ]); + // @ts-expect-error for testing if (!+process.env.WATCHPACK_POLLING) { - removeEvents.should.be.eql([ + expect(removeEvents).toEqual([ path.join(fixtures, "a"), path.join(fixtures, "b"), path.join(fixtures, "a"), path.join(fixtures, "b"), ]); } - Object.keys(w.getTimes()) - .sort() - .should.be.eql([path.join(fixtures, "a"), path.join(fixtures, "b")]); + expect(Object.keys(w.getTimes()).sort()).toEqual([ + path.join(fixtures, "a"), + path.join(fixtures, "b"), + ]); w.close(); done(); }); @@ -1028,7 +1071,7 @@ describe("Watchpack", function watchpackTest() { }); it("should not report changes in initial scan when no start time is provided", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 100, }); w.on("aggregated", () => { @@ -1057,6 +1100,7 @@ describe("Watchpack", function watchpackTest() { missing: [path.join(fixtures, "dir", "c")], }); testHelper.tick(2000, () => { + expect(true).toBe(true); // no event fired w.close(); done(); @@ -1066,7 +1110,7 @@ describe("Watchpack", function watchpackTest() { }); it("should not report changes in initial scan when start time is provided", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 100, }); w.on("aggregated", () => { @@ -1097,6 +1141,7 @@ describe("Watchpack", function watchpackTest() { startTime: Date.now(), }); testHelper.tick(2000, () => { + expect(true).toBe(true); // no event fired w.close(); done(); @@ -1106,7 +1151,7 @@ describe("Watchpack", function watchpackTest() { }); it("should not report changes to a folder watched as file when items are added", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 100, }); w.on("aggregated", () => { @@ -1123,6 +1168,7 @@ describe("Watchpack", function watchpackTest() { testHelper.tick(1000, () => { testHelper.file("dir/c"); testHelper.tick(1000, () => { + expect(true).toBe(true); // no event fired w.close(); done(); @@ -1132,17 +1178,15 @@ describe("Watchpack", function watchpackTest() { }); it("should report removal of file and directory if it is missing in initial scan", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); w.on("aggregated", (changes, removals) => { - [...changes].should.be.eql([]); - [...removals] - .sort() - .should.be.eql([ - path.join(fixtures, "dir", "a"), - path.join(fixtures, "dir", "b"), - ]); + expect([...changes]).toEqual([]); + expect([...removals].sort()).toEqual([ + path.join(fixtures, "dir", "a"), + path.join(fixtures, "dir", "b"), + ]); w.close(); done(); }); @@ -1157,17 +1201,15 @@ describe("Watchpack", function watchpackTest() { }); it("should report removal of file and directory if parent directory is missing in initial scan", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); w.on("aggregated", (changes, removals) => { - [...changes].should.be.eql([]); - [...removals] - .sort() - .should.be.eql([ - path.join(fixtures, "dir", "a"), - path.join(fixtures, "dir", "b"), - ]); + expect([...changes]).toEqual([]); + expect([...removals].sort()).toEqual([ + path.join(fixtures, "dir", "a"), + path.join(fixtures, "dir", "b"), + ]); w.close(); done(); }); @@ -1181,17 +1223,15 @@ describe("Watchpack", function watchpackTest() { }); it("should not detect file reading as change, but atomic file writes", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); w.on("aggregated", (changes, removals) => { - [...changes] - .sort() - .should.be.eql([ - path.join(fixtures, "dir", "b"), - path.join(fixtures, "dir", "c"), - ]); - [...removals].should.be.eql([]); + expect([...changes].sort()).toEqual([ + path.join(fixtures, "dir", "b"), + path.join(fixtures, "dir", "c"), + ]); + expect([...removals]).toEqual([]); w.close(); done(); }); @@ -1216,10 +1256,11 @@ describe("Watchpack", function watchpackTest() { }); it("should allow to reuse watchers when watch is called again", (done) => { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 1000, }); w.on("aggregated", () => { + expect(true).toBe(false); done(new Error("should not fire")); }); testHelper.dir("dir"); @@ -1308,19 +1349,26 @@ describe("Watchpack", function watchpackTest() { }); /** - * @param {string[]} files files - * @param {string[]} dirs dirs - * @param {(changes: string[]) => void} callback callback + * @param {string | string[]} files files + * @param {string | string[]} dirs dirs + * @param {(changes: Changes) => void} callback callback * @param {() => void} ready ready callback */ function expectWatchEvent(files, dirs, callback, ready) { - const w = new Watchpack({ + const w = new WatchpackTest({ aggregateTimeout: 500, followSymlinks: true, }); - // eslint-disable-next-line unicorn/prefer-spread - w.watch([].concat(files), [].concat(dirs), Date.now()); + if (typeof files === "string") { + files = [files]; + } + + if (typeof dirs === "string") { + dirs = [dirs]; + } + + w.watch([...files], [...dirs], Date.now()); let active = false; let closed = false; @@ -1344,7 +1392,7 @@ describe("Watchpack", function watchpackTest() { path.join(fixtures, "link2"), [], (changes) => { - [...changes].should.be.eql([path.join(fixtures, "link2")]); + expect([...changes]).toEqual([path.join(fixtures, "link2")]); done(); }, () => { @@ -1358,7 +1406,7 @@ describe("Watchpack", function watchpackTest() { path.join(fixtures, "link2"), [], (changes) => { - [...changes].should.be.eql([path.join(fixtures, "link2")]); + expect([...changes]).toEqual([path.join(fixtures, "link2")]); done(); }, () => { @@ -1373,7 +1421,7 @@ describe("Watchpack", function watchpackTest() { path.join(fixtures, "link2"), [], (changes) => { - [...changes].should.be.eql([path.join(fixtures, "link2")]); + expect([...changes]).toEqual([path.join(fixtures, "link2")]); done(); }, () => { @@ -1388,7 +1436,7 @@ describe("Watchpack", function watchpackTest() { path.join(fixtures, "link2"), [], (changes) => { - [...changes].should.be.eql([path.join(fixtures, "link2")]); + expect([...changes]).toEqual([path.join(fixtures, "link2")]); done(); }, () => { @@ -1403,7 +1451,7 @@ describe("Watchpack", function watchpackTest() { [], path.join(fixtures, "link"), (changes) => { - [...changes].should.be.eql([path.join(fixtures, "link")]); + expect([...changes]).toEqual([path.join(fixtures, "link")]); done(); }, () => { @@ -1417,7 +1465,7 @@ describe("Watchpack", function watchpackTest() { [], path.join(fixtures, "link"), (changes) => { - [...changes].should.be.eql([path.join(fixtures, "link")]); + expect([...changes]).toEqual([path.join(fixtures, "link")]); done(); }, () => { @@ -1432,7 +1480,7 @@ describe("Watchpack", function watchpackTest() { [], path.join(fixtures, "link"), (changes) => { - [...changes].should.be.eql([path.join(fixtures, "link")]); + expect([...changes]).toEqual([path.join(fixtures, "link")]); done(); }, () => { @@ -1443,6 +1491,8 @@ describe("Watchpack", function watchpackTest() { }); }); } else { - it("symlinks"); + it("symlinks", () => { + expect(true).toBe(true); + }); } }); diff --git a/test/helpers/TestHelper.js b/test/helpers/TestHelper.js index 73b00e5..dd1aa46 100644 --- a/test/helpers/TestHelper.js +++ b/test/helpers/TestHelper.js @@ -1,18 +1,29 @@ "use strict"; +/* global expect */ + const fs = require("fs"); const path = require("path"); +// @ts-expect-error no need extra types const rimraf = require("rimraf"); +// @ts-expect-error no need extra types const writeFileAtomic = require("write-file-atomic"); +/** @typedef {import("../../lib/getWatcherManager").DirectoryWatcherOptions} DirectoryWatcherOptions */ +/** @typedef {import("../../lib/getWatcherManager").WatcherManager} WatcherManager */ + const watchEventSource = require("../../lib/watchEventSource"); require("../../lib/getWatcherManager"); let watcherManagerModule = require.cache[require.resolve("../../lib/getWatcherManager")]; +/** @type {Set} */ const allWatcherManager = new Set(); +// @ts-expect-error for tests const oldFn = watcherManagerModule.exports; + +// @ts-expect-error for tests watcherManagerModule = (options) => { const watcherManager = oldFn(options); allWatcherManager.add(watcherManager); @@ -20,42 +31,57 @@ watcherManagerModule = (options) => { const checkAllWatcherClosed = () => { for (const watcherManager of allWatcherManager) { - [...watcherManager.directoryWatchers.keys()].should.be.eql([]); + expect([...watcherManager.directoryWatchers.keys()]).toEqual([]); } - watchEventSource.getNumberOfWatchers().should.be.eql(0); + expect(watchEventSource.getNumberOfWatchers()).toBe(0); }; -/** - * @param {string} testdir testdir - * @constructor - */ -function TestHelper(testdir) { - this.testdir = testdir; - const self = this; - this.before = function before(done) { - self._before(done); - }; - this.after = function after(done) { - self._after(done); - }; -} +class TestHelper { + /** + * @param {string} testdir testdir + */ + constructor(testdir) { + this.testdir = testdir; + } -module.exports = TestHelper; + /** + * @param {number | (() => void)} arg arg + * @param {() => void=} fn fn + */ + tick(arg, fn) { + // if polling is set, ensure the tick is longer than the polling interval. + const defaultTick = (Number(process.env.WATCHPACK_POLLING) || 100) + 10; + + if (typeof arg === "function") { + fn = arg; + arg = defaultTick; + } + + setTimeout(() => { + /** @type {() => void} */ + (fn)(); + }, arg); + } -TestHelper.prototype._before = function _before(done) { - checkAllWatcherClosed(); - this.tick(400, () => { - rimraf.sync(this.testdir); - fs.mkdirSync(this.testdir); - done(); - }); -}; + /** + * @param {() => void} done done + */ + before(done) { + checkAllWatcherClosed(); + this.tick(400, () => { + rimraf.sync(this.testdir); + fs.mkdirSync(this.testdir); + done(); + }); + } + + /** + * @param {() => void} done done + */ + after(done) { + let i = 0; -TestHelper.prototype._after = function _after(done) { - let i = 0; - this.tick( - 300, - function del() { + const del = () => { try { rimraf.sync(this.testdir); } catch (err) { @@ -65,77 +91,105 @@ TestHelper.prototype._after = function _after(done) { } checkAllWatcherClosed(); this.tick(300, done); - }.bind(this), - ); -}; + }; -TestHelper.prototype.dir = function dir(name) { - fs.mkdirSync(path.join(this.testdir, name)); -}; + this.tick(300, () => { + del(); + }); + } -TestHelper.prototype.rename = function rename(orig, dest) { - fs.renameSync(path.join(this.testdir, orig), path.join(this.testdir, dest)); -}; + /** + * @param {string} name name + */ + dir(name) { + fs.mkdirSync(path.join(this.testdir, name)); + } -TestHelper.prototype.file = function file(name) { - fs.writeFileSync(path.join(this.testdir, name), `${Math.random()}`, "utf8"); -}; + /** + * @param {string} orig orig + * @param {string} dest dest + */ + rename(orig, dest) { + fs.renameSync(path.join(this.testdir, orig), path.join(this.testdir, dest)); + } -TestHelper.prototype.fileAtomic = function fileAtomic(name) { - writeFileAtomic.sync( - path.join(this.testdir, name), - `${Math.random()}`, - "utf8", - ); -}; + /** + * @param {string} name name + */ + file(name) { + fs.writeFileSync(path.join(this.testdir, name), `${Math.random()}`, "utf8"); + } -TestHelper.prototype.accessFile = function accessFile(name) { - const stat = fs.statSync(path.join(this.testdir, name)); - fs.utimesSync( - path.join(this.testdir, name), - new Date(Date.now() - 1000 * 60 * 60 * 24), - stat.mtime, - ); - fs.readFileSync(path.join(this.testdir, name)); -}; + /** + * @param {string} name name + */ + fileAtomic(name) { + writeFileAtomic.sync( + path.join(this.testdir, name), + `${Math.random()}`, + "utf8", + ); + } -TestHelper.prototype.symlinkFile = function symlinkFile(name, target) { - fs.symlinkSync(target, path.join(this.testdir, name), "file"); -}; + /** + * @param {string} name name + */ + accessFile(name) { + const stat = fs.statSync(path.join(this.testdir, name)); + fs.utimesSync( + path.join(this.testdir, name), + new Date(Date.now() - 1000 * 60 * 60 * 24), + stat.mtime, + ); + fs.readFileSync(path.join(this.testdir, name)); + } -TestHelper.prototype.symlinkDir = function symlinkDir(name, target) { - fs.symlinkSync(target, path.join(this.testdir, name), "dir"); -}; + /** + * @param {string} name name + * @param {string} target target + */ + symlinkFile(name, target) { + fs.symlinkSync(target, path.join(this.testdir, name), "file"); + } -TestHelper.prototype.unlink = function unlink(name) { - fs.unlinkSync(path.join(this.testdir, name)); -}; + /** + * @param {string} name name + * @param {string} target target + */ + symlinkDir(name, target) { + fs.symlinkSync(target, path.join(this.testdir, name), "dir"); + } -TestHelper.prototype.mtime = function mtime(name, mtime) { - const stats = fs.statSync(path.join(this.testdir, name)); - fs.utimesSync(path.join(this.testdir, name), stats.atime, new Date(mtime)); -}; + /** + * @param {string} name name + */ + unlink(name) { + fs.unlinkSync(path.join(this.testdir, name)); + } -TestHelper.prototype.remove = function remove(name) { - rimraf.sync(path.join(this.testdir, name)); -}; + /** + * @param {string} name name + * @param {number} mtime mtime + */ + mtime(name, mtime) { + const stats = fs.statSync(path.join(this.testdir, name)); + fs.utimesSync(path.join(this.testdir, name), stats.atime, new Date(mtime)); + } -TestHelper.prototype.tick = function tick(arg, fn) { - // if polling is set, ensure the tick is longer than the polling interval. - const defaultTick = (Number(process.env.WATCHPACK_POLLING) || 100) + 10; - if (typeof arg === "function") { - fn = arg; - arg = defaultTick; + /** + * @param {string} name name + */ + remove(name) { + rimraf.sync(path.join(this.testdir, name)); } - setTimeout(() => { - fn(); - }, arg); -}; -TestHelper.prototype.getNumberOfWatchers = function getNumberOfWatchers() { - let count = 0; - for (const watcherManager of allWatcherManager) { - count += watcherManager.directoryWatchers.size; + getNumberOfWatchers() { + let count = 0; + for (const watcherManager of allWatcherManager) { + count += watcherManager.directoryWatchers.size; + } + return count; } - return count; -}; +} + +module.exports = TestHelper; diff --git a/test/mocha.opts b/test/mocha.opts deleted file mode 100644 index fda1c48..0000000 --- a/test/mocha.opts +++ /dev/null @@ -1,2 +0,0 @@ ---full-trace ---reporter spec diff --git a/tsconfig.json b/tsconfig.json index 29ae50a..cadb703 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,7 @@ "noEmit": true, "strict": true, "alwaysStrict": true, - "types": ["node"], + "types": ["node", "jest"], "esModuleInterop": true }, "include": ["lib/**/*.js"] diff --git a/tsconfig.types.test.json b/tsconfig.types.test.json index 50d014a..ecfce02 100644 --- a/tsconfig.types.test.json +++ b/tsconfig.types.test.json @@ -1,10 +1,6 @@ { "extends": "./tsconfig", "compilerOptions": { - "strict": false, - "noImplicitThis": true, - "alwaysStrict": true, - "strictNullChecks": true, "types": ["node", "jest"] }, "include": ["test/*.js"] diff --git a/types/DirectoryWatcher.d.ts b/types/DirectoryWatcher.d.ts index df01c18..6364505 100644 --- a/types/DirectoryWatcher.d.ts +++ b/types/DirectoryWatcher.d.ts @@ -5,6 +5,12 @@ export = DirectoryWatcher; * @property {(target: string, mtime: string, type: EventType, initial: boolean) => void} change change event * @property {() => void} closed closed event */ +/** + * @typedef {object} DirectoryWatcherOptions + * @property {boolean=} followSymlinks true when need to resolve symlinks and watch symlink and real file, otherwise false + * @property {IgnoredFunction=} ignored ignore some files from watching (glob pattern or regexp) + * @property {number | boolean=} poll true when need to enable polling mode for watching, otherwise false + */ /** * @extends {EventEmitter<{ [K in keyof WatchpackEvents]: Parameters }>} */ @@ -26,15 +32,15 @@ declare class DirectoryWatcher extends EventEmitter<{ /** * @param {WatcherManager} watcherManager a watcher manager * @param {string} directoryPath directory path - * @param {NormalizedWatchOptions} options options + * @param {DirectoryWatcherOptions=} options options */ constructor( watcherManager: WatcherManager, directoryPath: string, - options: NormalizedWatchOptions, + options?: DirectoryWatcherOptions | undefined, ); watcherManager: import("./getWatcherManager").WatcherManager; - options: import("./index").NormalizedWatchOptions; + options: DirectoryWatcherOptions; path: string; /** @type {Map} */ files: Map; @@ -172,9 +178,9 @@ declare class DirectoryWatcher extends EventEmitter<{ } declare namespace DirectoryWatcher { export { - Watcher, EXISTANCE_ONLY_TIME_ENTRY, - NormalizedWatchOptions, + Watcher, + IgnoredFunction, EventType, TimeInfoEntries, Entry, @@ -187,6 +193,7 @@ declare namespace DirectoryWatcher { DirectoryWatcherEvents, InitialScanRemoved, WatchpackEvents, + DirectoryWatcherOptions, }; } import { EventEmitter } from "events"; @@ -233,7 +240,7 @@ declare class Watcher extends EventEmitter<{ close(): void; } import watchEventSource = require("./watchEventSource"); -/** @typedef {import("./index").NormalizedWatchOptions} NormalizedWatchOptions */ +/** @typedef {import("./index").IgnoredFunction} IgnoredFunction */ /** @typedef {import("./index").EventType} EventType */ /** @typedef {import("./index").TimeInfoEntries} TimeInfoEntries */ /** @typedef {import("./index").Entry} Entry */ @@ -244,7 +251,7 @@ import watchEventSource = require("./watchEventSource"); /** @typedef {import("./watchEventSource").Watcher} EventSourceWatcher */ /** @type {ExistanceOnlyTimeEntry} */ declare const EXISTANCE_ONLY_TIME_ENTRY: ExistanceOnlyTimeEntry; -type NormalizedWatchOptions = import("./index").NormalizedWatchOptions; +type IgnoredFunction = import("./index").IgnoredFunction; type EventType = import("./index").EventType; type TimeInfoEntries = import("./index").TimeInfoEntries; type Entry = import("./index").Entry; @@ -310,3 +317,17 @@ type WatchpackEvents = { */ closed: () => void; }; +type DirectoryWatcherOptions = { + /** + * true when need to resolve symlinks and watch symlink and real file, otherwise false + */ + followSymlinks?: boolean | undefined; + /** + * ignore some files from watching (glob pattern or regexp) + */ + ignored?: IgnoredFunction | undefined; + /** + * true when need to enable polling mode for watching, otherwise false + */ + poll?: (number | boolean) | undefined; +}; diff --git a/types/getWatcherManager.d.ts b/types/getWatcherManager.d.ts index 39d3a7c..d584dcd 100644 --- a/types/getWatcherManager.d.ts +++ b/types/getWatcherManager.d.ts @@ -1,25 +1,26 @@ declare namespace _exports { export { - NormalizedWatchOptions, EventMap, + DirectoryWatcherOptions, DirectoryWatcherEvents, FileWatcherEvents, Watcher, }; } -declare function _exports(options: NormalizedWatchOptions): WatcherManager; +declare function _exports(options: DirectoryWatcherOptions): WatcherManager; declare namespace _exports { export { WatcherManager }; } export = _exports; -type NormalizedWatchOptions = import("./index").NormalizedWatchOptions; type EventMap = import("./index").EventMap; +type DirectoryWatcherOptions = + import("./DirectoryWatcher").DirectoryWatcherOptions; type DirectoryWatcherEvents = import("./DirectoryWatcher").DirectoryWatcherEvents; type FileWatcherEvents = import("./DirectoryWatcher").FileWatcherEvents; type Watcher = import("./DirectoryWatcher").Watcher; -/** @typedef {import("./index").NormalizedWatchOptions} NormalizedWatchOptions */ /** @typedef {import("./index").EventMap} EventMap */ +/** @typedef {import("./DirectoryWatcher").DirectoryWatcherOptions} DirectoryWatcherOptions */ /** @typedef {import("./DirectoryWatcher").DirectoryWatcherEvents} DirectoryWatcherEvents */ /** @typedef {import("./DirectoryWatcher").FileWatcherEvents} FileWatcherEvents */ /** @@ -28,10 +29,10 @@ type Watcher = import("./DirectoryWatcher").Watcher; */ declare class WatcherManager { /** - * @param {NormalizedWatchOptions} options options + * @param {DirectoryWatcherOptions=} options options */ - constructor(options: NormalizedWatchOptions); - options: import("./index").NormalizedWatchOptions; + constructor(options?: DirectoryWatcherOptions | undefined); + options: DirectoryWatcher.DirectoryWatcherOptions; /** @type {Map} */ directoryWatchers: Map; /** diff --git a/types/index.d.ts b/types/index.d.ts index ef6a109..f483678 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -23,9 +23,9 @@ declare class Watchpack extends EventEmitter<{ aggregated: [changes: Changes, removals: Removals]; }> { /** - * @param {WatchOptions} options options + * @param {WatchOptions=} options options */ - constructor(options: WatchOptions); + constructor(options?: WatchOptions | undefined); /** @type {WatchOptions} */ options: WatchOptions; aggregateTimeout: number; diff --git a/types/watchEventSource.d.ts b/types/watchEventSource.d.ts index 6b16bb6..8b75366 100644 --- a/types/watchEventSource.d.ts +++ b/types/watchEventSource.d.ts @@ -1,6 +1,6 @@ -export function watch(filePath: string): Watcher; export function batch(fn: () => void): void; export function getNumberOfWatchers(): number; +export function watch(filePath: string): Watcher; export type FSWatcher = import("fs").FSWatcher; export type EventType = import("./index").EventType; export type WatcherSet = Set;