diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ae41e8b..1158afe 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -51,8 +51,10 @@ jobs: node-version: ${{ matrix.node-version }} architecture: ${{ steps.calculate_architecture.outputs.result }} cache: "npm" + - run: npm install + 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 cover - uses: codecov/codecov-action@v5 with: diff --git a/README.md b/README.md index 5372884..14a2df4 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ All methods should be considered as expensive as they may need to do computation #### `source` + ```typescript Source.prototype.source() -> String | Buffer ``` @@ -20,6 +21,7 @@ Returns the represented source code as string or Buffer (for binary Sources). #### `buffer` + ```typescript Source.prototype.buffer() -> Buffer ``` @@ -28,6 +30,7 @@ Returns the represented source code as Buffer. Strings are converted to utf-8. #### `size` + ```typescript Source.prototype.size() -> Number ``` @@ -36,6 +39,7 @@ Returns the size in bytes of the represented source code. #### `map` + ```typescript Source.prototype.map(options?: Object) -> Object | null ``` @@ -48,6 +52,7 @@ The `options` object can contain the following keys: #### `sourceAndMap` + ```typescript Source.prototype.sourceAndMap(options?: Object) -> { source: String | Buffer, @@ -61,6 +66,7 @@ See `map()` for `options`. #### `updateHash` + ```typescript Source.prototype.updateHash(hash: Hash) -> void ``` @@ -71,6 +77,7 @@ Updates the provided `Hash` object with the content of the represented source co Represents source code without SourceMap. + ```typescript new RawSource(sourceCode: String | Buffer) ``` @@ -79,6 +86,7 @@ new RawSource(sourceCode: String | Buffer) Represents source code, which is a copy of the original file. + ```typescript new OriginalSource( sourceCode: String | Buffer, @@ -95,6 +103,7 @@ OriginalSource tries to create column mappings if requested, by splitting the so Represents source code with SourceMap, optionally having an additional SourceMap for the original source. + ```typescript new SourceMapSource( sourceCode: String | Buffer, @@ -121,6 +130,7 @@ When original source matches generated source for a mapping it's assumed to be m Decorates a `Source` and caches returned results of `map`, `source`, `buffer`, `size` and `sourceAndMap` in memory. `updateHash` is not cached. It tries to reused cached results from other methods to avoid calculations, i. e. when `source` is already cached, calling `size` will get the size from the cached source, calling `sourceAndMap` will only call `map` on the wrapped Source. + ```typescript new CachedSource(source: Source) new CachedSource(source: Source | () => Source, cachedData?: CachedData) @@ -146,6 +156,7 @@ Returns the original `Source` object or a function returning these. Prefix every line of the decorated `Source` with a provided string. + ```typescript new PrefixSource( prefix: String, @@ -157,6 +168,7 @@ new PrefixSource( Concatenate multiple `Source`s or strings to a single source. + ```typescript new ConcatSource( ...items?: Source | String @@ -167,6 +179,7 @@ new ConcatSource( #### `add` + ```typescript ConcatSource.prototype.add(item: Source | String) ``` @@ -184,6 +197,7 @@ When original source matches generated source for a mapping it's assumed to be m #### `replace` + ```typescript ReplaceSource.prototype.replace( start: Number, @@ -198,6 +212,7 @@ Locations represents locations in the original source and are not influenced by #### `insert` + ```typescript ReplaceSource.prototype.insert( pos: Number, @@ -221,6 +236,7 @@ Converts a Source-like object into a real Source object. #### static `from` + ```typescript CompatSource.from(sourceLike: any | Source) ``` diff --git a/lib/helpers/getFromStreamChunks.js b/lib/helpers/getFromStreamChunks.js index fbd046e..ed9b347 100644 --- a/lib/helpers/getFromStreamChunks.js +++ b/lib/helpers/getFromStreamChunks.js @@ -15,12 +15,11 @@ const createMappingsSerializer = require("./createMappingsSerializer"); /** @typedef {{ streamChunks: StreamChunksFunction }} SourceLikeWithStreamChunks */ /** - * @param {SourceLikeWithStreamChunks} inputSource input source + * @param {SourceLikeWithStreamChunks} source source * @param {Options=} options options - * @returns {SourceAndMap} map + * @returns {RawSourceMap | null} map */ -module.exports.getSourceAndMap = (inputSource, options) => { - let code = ""; +module.exports.getMap = (source, options) => { let mappings = ""; /** @type {(string | null)[]} */ const potentialSources = []; @@ -29,8 +28,8 @@ module.exports.getSourceAndMap = (inputSource, options) => { /** @type {(string | null)[]} */ const potentialNames = []; const addMapping = createMappingsSerializer(options); - const { source } = inputSource.streamChunks( - { ...options, finalSource: true }, + source.streamChunks( + { ...options, source: false, finalSource: true }, ( chunk, generatedLine, @@ -40,7 +39,6 @@ module.exports.getSourceAndMap = (inputSource, options) => { originalColumn, nameIndex, ) => { - if (chunk !== undefined) code += chunk; mappings += addMapping( generatedLine, generatedColumn, @@ -69,32 +67,29 @@ module.exports.getSourceAndMap = (inputSource, options) => { potentialNames[nameIndex] = name; }, ); - return { - source: source !== undefined ? source : code, - map: - mappings.length > 0 - ? { - version: 3, - file: "x", - mappings, - // We handle broken sources as `null`, in spec this field should be string, but no information what we should do in such cases if we change type it will be breaking change - sources: /** @type {string[]} */ (potentialSources), - sourcesContent: - potentialSourcesContent.length > 0 - ? /** @type {string[]} */ (potentialSourcesContent) - : undefined, - names: /** @type {string[]} */ (potentialNames), - } - : null, - }; + return mappings.length > 0 + ? { + version: 3, + file: "x", + mappings, + // We handle broken sources as `null`, in spec this field should be string, but no information what we should do in such cases if we change type it will be breaking change + sources: /** @type {string[]} */ (potentialSources), + sourcesContent: + potentialSourcesContent.length > 0 + ? /** @type {string[]} */ (potentialSourcesContent) + : undefined, + names: /** @type {string[]} */ (potentialNames), + } + : null; }; /** - * @param {SourceLikeWithStreamChunks} source source + * @param {SourceLikeWithStreamChunks} inputSource input source * @param {Options=} options options - * @returns {RawSourceMap | null} map + * @returns {SourceAndMap} map */ -module.exports.getMap = (source, options) => { +module.exports.getSourceAndMap = (inputSource, options) => { + let code = ""; let mappings = ""; /** @type {(string | null)[]} */ const potentialSources = []; @@ -103,8 +98,8 @@ module.exports.getMap = (source, options) => { /** @type {(string | null)[]} */ const potentialNames = []; const addMapping = createMappingsSerializer(options); - source.streamChunks( - { ...options, source: false, finalSource: true }, + const { source } = inputSource.streamChunks( + { ...options, finalSource: true }, ( chunk, generatedLine, @@ -114,6 +109,7 @@ module.exports.getMap = (source, options) => { originalColumn, nameIndex, ) => { + if (chunk !== undefined) code += chunk; mappings += addMapping( generatedLine, generatedColumn, @@ -142,18 +138,22 @@ module.exports.getMap = (source, options) => { potentialNames[nameIndex] = name; }, ); - return mappings.length > 0 - ? { - version: 3, - file: "x", - mappings, - // We handle broken sources as `null`, in spec this field should be string, but no information what we should do in such cases if we change type it will be breaking change - sources: /** @type {string[]} */ (potentialSources), - sourcesContent: - potentialSourcesContent.length > 0 - ? /** @type {string[]} */ (potentialSourcesContent) - : undefined, - names: /** @type {string[]} */ (potentialNames), - } - : null; + return { + source: source !== undefined ? source : code, + map: + mappings.length > 0 + ? { + version: 3, + file: "x", + mappings, + // We handle broken sources as `null`, in spec this field should be string, but no information what we should do in such cases if we change type it will be breaking change + sources: /** @type {string[]} */ (potentialSources), + sourcesContent: + potentialSourcesContent.length > 0 + ? /** @type {string[]} */ (potentialSourcesContent) + : undefined, + names: /** @type {string[]} */ (potentialNames), + } + : null, + }; }; diff --git a/lib/helpers/stringBufferUtils.js b/lib/helpers/stringBufferUtils.js index a64659a..0945112 100644 --- a/lib/helpers/stringBufferUtils.js +++ b/lib/helpers/stringBufferUtils.js @@ -110,8 +110,8 @@ function internString(str) { module.exports = { disableDualStringBufferCaching, enableDualStringBufferCaching, - internString, - isDualStringBufferCachingEnabled, enterStringInterningRange, exitStringInterningRange, + internString, + isDualStringBufferCachingEnabled, }; diff --git a/package-lock.json b/package-lock.json index a88b601..ce4960e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ "prettier-2": "npm:prettier@^2", "source-map": "^0.7.3", "sourcemap-validator": "^2.1.0", - "tooling": "webpack/tooling#v1.23.10", + "tooling": "webpack/tooling#v1.24.4", "typescript": "^5.3.3", "webpack": "^5.99.9" }, @@ -49,26 +49,6 @@ "js-yaml": "^4.1.0" } }, - "node_modules/@apidevtools/json-schema-ref-parser/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.0" - }, - "node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", - "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, "node_modules/@babel/code-frame": { "version": "7.27.1", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", @@ -660,30 +640,6 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@eslint/config-array/node_modules/brace-expansion": { - "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": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/@eslint/config-array/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/@eslint/config-helpers": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", @@ -734,24 +690,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/@eslint/eslintrc/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.0" - }, - "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { - "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": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, "node_modules/@eslint/eslintrc/node_modules/globals": { "version": "14.0.0", "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", @@ -765,32 +703,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@eslint/eslintrc/node_modules/js-yaml": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", - "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/@eslint/eslintrc/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/@eslint/js": { "version": "9.39.2", "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.2.tgz", @@ -921,6 +833,16 @@ "node": ">=8" } }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", @@ -935,6 +857,20 @@ "node": ">=8" } }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", + "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", @@ -1157,52 +1093,6 @@ } } }, - "node_modules/@jest/reporters/node_modules/brace-expansion": { - "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": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/@jest/reporters/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dev": true, - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@jest/reporters/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/@jest/reporters/node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -1786,6 +1676,32 @@ "typescript": ">=4.8.4 <6.0.0" } }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "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/@typescript-eslint/utils": { "version": "8.50.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.50.0.tgz", @@ -2257,14 +2173,11 @@ } }, "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true, - "license": "MIT", - "dependencies": { - "sprintf-js": "~1.0.2" - } + "license": "Python-2.0" }, "node_modules/array-buffer-byte-length": { "version": "1.0.2", @@ -2539,13 +2452,14 @@ } }, "node_modules/brace-expansion": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", - "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "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": { - "balanced-match": "^1.0.0" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, "node_modules/braces": { @@ -3603,6 +3517,39 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "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/escodegen/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "license": "BSD-3-Clause", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/eslint": { "version": "9.39.2", "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.2.tgz", @@ -3858,17 +3805,6 @@ "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9" } }, - "node_modules/eslint-plugin-import/node_modules/brace-expansion": { - "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": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, "node_modules/eslint-plugin-import/node_modules/debug": { "version": "3.2.7", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", @@ -3879,19 +3815,6 @@ "ms": "^2.1.1" } }, - "node_modules/eslint-plugin-import/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/eslint-plugin-import/node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", @@ -4094,36 +4017,12 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint/node_modules/brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "node_modules/esniff": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz", + "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/eslint/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/esniff": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz", - "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", - "dev": true, - "license": "ISC", + "license": "ISC", "dependencies": { "d": "^1.0.1", "es5-ext": "^0.10.62", @@ -4152,6 +4051,20 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/esquery": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", @@ -4687,6 +4600,28 @@ "dev": true, "license": "ISC" }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/glob-parent": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", @@ -5789,17 +5724,6 @@ } } }, - "node_modules/jest-config/node_modules/brace-expansion": { - "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": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, "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", @@ -5816,41 +5740,6 @@ "node": ">=8" } }, - "node_modules/jest-config/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dev": true, - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/jest-config/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/jest-diff": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", @@ -6197,52 +6086,6 @@ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/jest-runtime/node_modules/brace-expansion": { - "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": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/jest-runtime/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dev": true, - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/jest-runtime/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/jest-serializer": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz", @@ -6427,33 +6270,18 @@ "license": "MIT" }, "node_modules/js-yaml": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", - "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", "dev": true, "license": "MIT", "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "argparse": "^2.0.1" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, - "node_modules/js-yaml/node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "license": "BSD-2-Clause", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/jsdoc-type-pratt-parser": { "version": "6.10.0", "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-6.10.0.tgz", @@ -6511,53 +6339,6 @@ } } }, - "node_modules/jsdom/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/jsdom/node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "license": "BSD-2-Clause", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jsdom/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "license": "BSD-3-Clause", - "optional": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/jsesc": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", @@ -6626,65 +6407,6 @@ "node": ">=10.0.0" } }, - "node_modules/json-schema-to-typescript/node_modules/brace-expansion": { - "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": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/json-schema-to-typescript/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dev": true, - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/json-schema-to-typescript/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/json-schema-to-typescript/node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true, - "license": "MIT", - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/json-schema-to-typescript/node_modules/prettier": { "version": "2.8.8", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", @@ -7935,19 +7657,16 @@ } }, "node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, "license": "ISC", "dependencies": { - "brace-expansion": "^2.0.1" + "brace-expansion": "^1.1.7" }, "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": "*" } }, "node_modules/minimist": { @@ -7960,6 +7679,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "license": "MIT", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -8817,52 +8549,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/rimraf/node_modules/brace-expansion": { - "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": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/rimraf/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dev": true, - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/rimraf/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/safe-array-concat": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz", @@ -9705,52 +9391,6 @@ "node": ">=8" } }, - "node_modules/test-exclude/node_modules/brace-expansion": { - "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": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/test-exclude/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dev": true, - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/test-exclude/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/thenify": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", @@ -9850,8 +9490,8 @@ } }, "node_modules/tooling": { - "version": "1.23.10", - "resolved": "git+ssh://git@github.com/webpack/tooling.git#94a68183eaddff8f27a229a5cc169cf0d24a5a20", + "version": "1.24.4", + "resolved": "git+ssh://git@github.com/webpack/tooling.git#064e6fbbf73858f135b32f842f3e381837100d28", "dev": true, "license": "MIT", "dependencies": { @@ -9885,39 +9525,6 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/tooling/node_modules/brace-expansion": { - "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": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/tooling/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dev": true, - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/tooling/node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", @@ -9925,19 +9532,6 @@ "dev": true, "license": "MIT" }, - "node_modules/tooling/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/tough-cookie": { "version": "4.1.4", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz", diff --git a/package.json b/package.json index b35cd6a..d17ca6a 100644 --- a/package.json +++ b/package.json @@ -2,12 +2,24 @@ "name": "webpack-sources", "version": "3.3.3", "description": "Source code handling classes for webpack", + "keywords": ["webpack", "source-map"], + "homepage": "https://github.com/webpack/webpack-sources#readme", + "bugs": { + "url": "https://github.com/webpack/webpack-sources/issues" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/webpack/webpack-sources.git" + }, + "license": "MIT", + "author": "Tobias Koppers @sokra", "main": "lib/index.js", "types": "types.d.ts", + "files": ["lib/", "types.d.ts"], "scripts": { "lint": "npm run lint:code && npm run lint:types && npm run lint:types-test && npm run lint:special", "lint:code": "eslint --cache .", - "lint:special": "node node_modules/tooling/lockfile-lint && node node_modules/tooling/inherit-types && node node_modules/tooling/format-file-header && node node_modules/tooling/generate-types", + "lint:special": "node node_modules/tooling/inherit-types && node node_modules/tooling/format-file-header && node node_modules/tooling/generate-types", "lint:types": "tsc", "lint:types-test": "tsc -p tsconfig.types.test.json", "fmt": "npm run fmt:base -- --loglevel warn --write", @@ -40,29 +52,11 @@ "prettier-2": "npm:prettier@^2", "source-map": "^0.7.3", "sourcemap-validator": "^2.1.0", - "tooling": "webpack/tooling#v1.23.10", + "tooling": "webpack/tooling#v1.24.4", "typescript": "^5.3.3", "webpack": "^5.99.9" }, - "files": [ - "lib/", - "types.d.ts" - ], "engines": { "node": ">=10.13.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/webpack/webpack-sources.git" - }, - "keywords": [ - "webpack", - "source-map" - ], - "author": "Tobias Koppers @sokra", - "license": "MIT", - "bugs": { - "url": "https://github.com/webpack/webpack-sources/issues" - }, - "homepage": "https://github.com/webpack/webpack-sources#readme" + } } diff --git a/test/CachedSource.js b/test/CachedSource.js index d16e12b..1421e8d 100644 --- a/test/CachedSource.js +++ b/test/CachedSource.js @@ -9,10 +9,10 @@ const { RawSource } = require("../"); const { Source } = require("../"); const streamChunks = require("../lib/helpers/streamChunks"); const { + disableDualStringBufferCaching, enableDualStringBufferCaching, enterStringInterningRange, exitStringInterningRange, - disableDualStringBufferCaching, } = require("../lib/helpers/stringBufferUtils"); class TrackedSource extends Source { diff --git a/test/Fuzzy.js b/test/Fuzzy.js index ecd16ed..078c55d 100644 --- a/test/Fuzzy.js +++ b/test/Fuzzy.js @@ -3,6 +3,7 @@ jest.mock("./__mocks__/createMappingsSerializer"); const { SourceMapConsumer } = require("source-map"); +const validate = require("sourcemap-validator"); const CachedSource = require("../lib/CachedSource"); const CompatSource = require("../lib/CompatSource"); const ConcatSource = require("../lib/ConcatSource"); @@ -12,7 +13,6 @@ const RawSource = require("../lib/RawSource"); const ReplaceSource = require("../lib/ReplaceSource"); const SourceMapSource = require("../lib/SourceMapSource"); const { withReadableMappings } = require("./helpers"); -const validate = require("sourcemap-validator"); /** @typedef {import("../lib/Source").RawSourceMap} RawSourceMap */ diff --git a/test/OriginalSource.js b/test/OriginalSource.js index 2bd6c31..b430936 100644 --- a/test/OriginalSource.js +++ b/test/OriginalSource.js @@ -9,13 +9,13 @@ const createXXHash64 = require("webpack/lib/util/hash/xxhash64"); jest.mock("./__mocks__/createMappingsSerializer"); +const { OriginalSource } = require("../"); const { + disableDualStringBufferCaching, enableDualStringBufferCaching, enterStringInterningRange, exitStringInterningRange, - disableDualStringBufferCaching, } = require("../lib/helpers/stringBufferUtils"); -const { OriginalSource } = require("../"); describe.each([ { diff --git a/test/RawSource.js b/test/RawSource.js index cc0b063..90f8741 100644 --- a/test/RawSource.js +++ b/test/RawSource.js @@ -1,15 +1,15 @@ "use strict"; -const { RawSource } = require("../"); const crypto = require("crypto"); const BatchedHash = require("webpack/lib/util/hash/BatchedHash"); const createMd4 = require("webpack/lib/util/hash/md4"); const createXXHash64 = require("webpack/lib/util/hash/xxhash64"); +const { RawSource } = require("../"); const { + disableDualStringBufferCaching, enableDualStringBufferCaching, enterStringInterningRange, exitStringInterningRange, - disableDualStringBufferCaching, } = require("../lib/helpers/stringBufferUtils"); const CODE_STRING = diff --git a/test/ReplaceSource.js b/test/ReplaceSource.js index 04cc2e4..83066db 100644 --- a/test/ReplaceSource.js +++ b/test/ReplaceSource.js @@ -4,10 +4,10 @@ jest.mock("./__mocks__/createMappingsSerializer"); +const validate = require("sourcemap-validator"); const { ReplaceSource } = require("../"); const { OriginalSource } = require("../"); const { SourceMapSource } = require("../"); -const validate = require("sourcemap-validator"); const { withReadableMappings } = require("./helpers"); describe("replaceSource", () => { diff --git a/test/SourceMapSource.js b/test/SourceMapSource.js index 7b24b31..ff4f20b 100644 --- a/test/SourceMapSource.js +++ b/test/SourceMapSource.js @@ -4,6 +4,13 @@ jest.mock("./__mocks__/createMappingsSerializer"); +const crypto = require("crypto"); +const fs = require("fs"); +const path = require("path"); +const { SourceNode } = require("source-map"); +const BatchedHash = require("webpack/lib/util/hash/BatchedHash"); +const createMd4 = require("webpack/lib/util/hash/md4"); +const createXXHash64 = require("webpack/lib/util/hash/xxhash64"); const { SourceMapSource } = require("../"); const { OriginalSource } = require("../"); const { ConcatSource } = require("../"); @@ -11,20 +18,13 @@ const { PrefixSource } = require("../"); const { ReplaceSource } = require("../"); const { CachedSource } = require("../"); const createMappingsSerializer = require("../lib/helpers/createMappingsSerializer"); -const { SourceNode } = require("source-map"); -const fs = require("fs"); -const path = require("path"); -const { withReadableMappings } = require("./helpers"); const { + disableDualStringBufferCaching, enableDualStringBufferCaching, enterStringInterningRange, exitStringInterningRange, - disableDualStringBufferCaching, } = require("../lib/helpers/stringBufferUtils"); -const crypto = require("crypto"); -const BatchedHash = require("webpack/lib/util/hash/BatchedHash"); -const createMd4 = require("webpack/lib/util/hash/md4"); -const createXXHash64 = require("webpack/lib/util/hash/xxhash64"); +const { withReadableMappings } = require("./helpers"); describe.each([ { diff --git a/tsconfig.json b/tsconfig.json index 75e76f6..29ae50a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { - "target": "ES2018", + "target": "es2018", "module": "commonjs", - "lib": ["es2017"], + "lib": ["es2018"], "allowJs": true, "checkJs": true, "noEmit": true, diff --git a/tsconfig.types.json b/tsconfig.types.json index 6e572bb..1c66acf 100644 --- a/tsconfig.types.json +++ b/tsconfig.types.json @@ -1,15 +1,3 @@ { - "compilerOptions": { - "target": "ES2017", - "module": "commonjs", - "lib": ["es2017"], - "allowJs": true, - "checkJs": true, - "noEmit": true, - "strict": true, - "alwaysStrict": true, - "types": ["node"], - "esModuleInterop": true - }, - "include": ["lib/**/*.js"] + "extends": "./tsconfig" } diff --git a/tsconfig.types.test.json b/tsconfig.types.test.json index bcd0c03..c0ced51 100644 --- a/tsconfig.types.test.json +++ b/tsconfig.types.test.json @@ -1,17 +1,11 @@ { + "extends": "./tsconfig", "compilerOptions": { - "target": "ES2017", - "module": "commonjs", - "lib": ["es2017"], - "allowJs": true, - "checkJs": true, - "noEmit": true, "strict": false, "noImplicitThis": true, "alwaysStrict": true, "strictNullChecks": true, "types": ["node", "jest"], - "esModuleInterop": true }, "include": ["test/*.js"] } diff --git a/types.d.ts b/types.d.ts index be75578..db9cd8f 100644 --- a/types.d.ts +++ b/types.d.ts @@ -412,10 +412,10 @@ declare namespace exports { export namespace stringBufferUtils { export let disableDualStringBufferCaching: () => void; export let enableDualStringBufferCaching: () => void; - export let internString: (str: string) => string; - export let isDualStringBufferCachingEnabled: () => boolean; export let enterStringInterningRange: () => void; export let exitStringInterningRange: () => void; + export let internString: (str: string) => string; + export let isDualStringBufferCachingEnabled: () => boolean; } } export type OnChunk = (